9using System.Collections.Generic;
13using Microsoft.VisualStudio.TestTools.UnitTesting;
16using TestClass = NUnit.Framework.TestFixtureAttribute;
17using TestInitialize = NUnit.Framework.SetUpAttribute;
18using TestCleanup = NUnit.Framework.TearDownAttribute;
19using TestMethod = NUnit.Framework.TestAttribute;
31 object test =
new object();
32 object result = conv.Convert(test,
null,
null,
null);
34 Assert.IsTrue(ReferenceEquals(test, result),
"Object references should be the same");
41 object result = conv.
Convert(123,
null,
null,
null);
43 Assert.AreEqual(123, (
int)result,
"Value should be 123");
50 object test =
new object();
51 object result = conv.ConvertBack(test,
null,
null,
null);
53 Assert.IsTrue(ReferenceEquals(test, result),
"Object references should be the same");
60 object result = conv.
ConvertBack(123,
null,
null,
null);
62 Assert.AreEqual(123, (
int)result,
"Value should be 123");
Provides the functionality of a WPF value converter without affecting the value as it flows to and fr...
object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Returns the unchanged value.
object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Returns the unchanged value.