public void ValidateBooleanNotToBeFalse() { // Given var validator = new BoolInverseValidator(true); // When validator.BeFalse(); // Then Assert.True(true); }
public void ValidateBooleanNotToBeFalseViolated() { // Given var validator = new BoolInverseValidator(false); // When var exception = Assert.Throws <XunitException>(() => validator.BeFalse(because: "that's the bottom line")); // Then Assert.NotNull(exception); var rn = Environment.NewLine; Assert.Equal( $"{rn}validator{rn}is \"False\"{rn}but was expected not to be false{rn}because that's the bottom line", exception.UserMessage); }