public void ConvertBackTest() { var converter = new UIntToDisplayValueConverter(); Assert.AreEqual(3u, converter.ConvertBack("3", null, null, null)); Assert.AreEqual(0u, converter.ConvertBack("", null, null, null)); Assert.AreEqual(0u, converter.ConvertBack(null, null, null, null)); }
public void ConvertTest() { var converter = new UIntToDisplayValueConverter(); Assert.AreEqual(3u, converter.Convert(3u, null, null, null)); Assert.AreEqual("", converter.Convert(0u, null, null, null)); }