public void Validate_Test() { //Given var validator = new NotNull(); //When var result = validator.Validate(new { }, 0, new API.Models.FieldConfig()); //Then result.IsValid.Should().BeTrue(); }
public void Validate_WhenObjectIsNull_ReturnsFalse() { //Given var validator = new NotNull(); //When var result = validator.Validate(null, 0, new API.Models.FieldConfig()); //Then result.IsValid.Should().BeFalse(); }