public void Test_Validate_Should_Return_Null_When_Class_With_Another_Attributes() { // Arrange var ValidateService = new ValidateService(); var testClass = new TestClassWithAnotherAttr(); // Act var errors = ValidateService.Validate(testClass); // Assert Assert.IsNull(errors); }
public void Validate_Should_Return_Null_When_Class_With_Another_Attributes() { // Arrange var validator = new ValidationHelper(); var testClass = new TestClassWithAnotherAttr(); // Act var errors = validator.Validate(testClass); // Assert Assert.IsNull(errors); }
public void IsValid_Should_Return_True_When_Class_With_Another_Attributes() { // Arrange var validator = new ValidationHelper(); var testClass = new TestClassWithAnotherAttr(); // Act var errors = validator.IsValid(testClass); // Assert Assert.IsTrue(errors); }
public void Validate_Should_Return_Null_When_Class_With_Another_Attributes() { // Arrange var validator = new Validator(); var testClass = new TestClassWithAnotherAttr(); // Act var errors = validator.Validate(testClass); // Assert Assert.IsNull(errors); }