public void Convert_0_Parameter1AsString() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(false, converter.Convert(0, typeof (bool), "1", (CultureInfo)null)); }
public void ConvertBack_Null() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(ConverterHelper.UnsetValue, converter.ConvertBack(null, typeof (int), null, (CultureInfo)null)); }
public void Convert_0_Parameter0AsValue() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(true, converter.Convert(0, typeof (bool), 0, (CultureInfo)null)); }
public void Convert_0() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(false, converter.Convert(0, typeof (bool), null, (CultureInfo)null)); }
public void ConvertBack_False_Parameter1AsString() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(ConverterHelper.UnsetValue, converter.ConvertBack(false, typeof (int), "1", (CultureInfo)null)); }
public void ConvertBack_True_Parameter1AsString() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(1, converter.ConvertBack(true, typeof (int), "1", (CultureInfo)null)); }
public void ConvertBack_True_Parameter0AsValue() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(0, converter.ConvertBack(true, typeof (int), 0, (CultureInfo)null)); }