public void WhenLeftNotNullRightNull_ShouldBeFalse() { // Arrange var a = TestableBooleanValue.Create(true); // act var actual = a == null; // assert actual.Should().BeFalse(); }
public void WhenFalse_ShouldCastToTrue() { // Arrange var value = TestableBooleanValue.Create(true); // Act var actual = (bool)value; // Assert actual.Should().BeTrue(); }
public void WhenFalse_ShouldBeFalse() { // Arrange var input = TestableBooleanValue.Create(false); // act bool actual = input; // assert actual.Should().BeFalse(); }
public void WhenObjectOfDifferentType_ShouldBeFalse() { // Arrange var a = TestableBooleanValue.Create(true); var b = new object(); // Act var actual = a == b; // Assert actual.Should().BeFalse(); }
public void WhenObjectOfDifferentBooleanValueType_ShouldBeTrue() { // Arrange var a = TestableBooleanValue.Create(true); var b = AnotherTestableBooleanValue.Create(true); // Act var actual = a != b; // Assert actual.Should().BeTrue(); }
public void WhenComparingFalseToBooleanValueTrue_ShouldNotBeEqual() { // arrange const bool a = false; var b = TestableBooleanValue.Create(true); // act var actual = a == b; // assert actual.Should().BeFalse(); }
public void WhenComparingBooleanValueTrueToTrue_ShouldBeEqual() { // arrange var a = TestableBooleanValue.Create(true); const bool b = true; // act var actual = a == b; // assert actual.Should().BeTrue(); }