Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }