public void Min_PropertyLowerThanMin_Fails() { // Arrange var testClass = new VerificationTestClass { IntProperty = -1 }; IntVerifier <VerificationTestClass> sut = CreateIntVerifier(testClass); // Act & Assert Assert.Throws <Exception>(() => sut.Min(0)); }
public void Min_PropertyHigherThanMin_Passes() { // Arrange var testClass = new VerificationTestClass { IntProperty = 1 }; IntVerifier <VerificationTestClass> sut = CreateIntVerifier(testClass); // Act Exception exception = Record.Exception(() => sut.Min(0)); // Assert Assert.Null(exception); }