public void WhenConvertingTrueAndFalseValuesThenResultIsFalse() { var booleanAndConverter = new BooleanAndConverter(); object[] values = { true, false, true }; object result = booleanAndConverter.Convert(values, typeof(bool), null, new CultureInfo("en-us")); Assert.IsInstanceOfType(result, typeof(bool)); Assert.AreEqual(result, false); }
public void BoleanAndConvBackTest() { //Arrange BooleanAndConverter booleanAndConverter = new BooleanAndConverter(); var obj = new object(); NotImplementedException exception = null; //Act try { booleanAndConverter.ConvertBack(obj, null, null, System.Globalization.CultureInfo.InvariantCulture); } catch (NotImplementedException e) { exception = e; } //Assert Assert.IsNotNull(exception); }
public void BeforeEach() { _objectUnderTest = new BooleanAndConverter(); }