public void ConvertBack_False_Parameter1AsString() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(ConverterHelper.DoNothingBindingValue, 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)); }
public void ConvertBack_True() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(ConverterHelper.DoNothingBindingValue, converter.ConvertBack(true, typeof(int), null, (CultureInfo)null)); }
public void ConvertBack_False_Parameter1AsValue() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(ConverterHelper.UnsetValue, converter.ConvertBack(false, typeof(int), 1, (CultureInfo)null)); }
public void ConvertBack_Null() { var converter = new IsSelectedValueConverter(); Assert.AreEqual(ConverterHelper.UnsetValue, converter.ConvertBack(null, typeof(int), null, (CultureInfo)null)); }