public void GivenNullShouldBeNull()
 {
     var target = new BooleanToAbstractConverter();
     CultureInfo culture = CultureInfo.CurrentCulture;
     object actual = target.Convert(null, null, null, culture);
     Assert.AreEqual(null, actual);
 }
 public void MustHaveAtLeast2Arguments()
 {
     var target = new BooleanToAbstractConverter();
     CultureInfo culture = CultureInfo.CurrentCulture;
     var arguments = new[] { "1" };
     target.Convert(arguments, null, null, culture);
     Assert.Fail();
 }
 public void GivenNotIsAbstractAndNotIsStatic()
 {
     var target = new BooleanToAbstractConverter();
     var actual = target.Convert(new object[] { false, false }, null, null, CultureInfo.CurrentCulture);
     Assert.AreEqual(1.0, actual);
 }
 public void ConvertBackTest()
 {
     var target = new BooleanToAbstractConverter();
     target.ConvertBack(null, null, null, null);
     Assert.Fail();
 }