public void ConvertBack_WhenPassedOne_ReturnsTrue() { //Arrange var classUnderTest = new BoolToIntConverter(); //Act var result = classUnderTest.ConvertBack(1, GetType(), null, null); //Assert Assert.IsTrue((bool)result); }
public void Convert_WhenPassedTrue_ReturnsOne() { //Arrange var classUnderTest = new BoolToIntConverter(); //Act var result = classUnderTest.Convert(true, GetType(), null, null); //Assert Assert.IsTrue((int)result == 1); }