public void SqrtRequestValidator_WithNNumberLowerThan0_IsNotSuccessful() { var request = new SqrtRequest { Number = -1 }; var validator = new SqrtRequestValidator(); var result = validator.Validate(request); result.IsValid.Should().BeFalse(); }
public void SqrtRequestValidator_WithNumberDifferentTo0_IsSuccessful() { var request = new SqrtRequest { Number = 5 }; var validator = new SqrtRequestValidator(); var result = validator.Validate(request); result.IsValid.Should().BeTrue(); }