Exemplo n.º 1
0
 public void TestMethod1()
 {
     var fluentFishValidator = new FluentFishValidator();
     var fish = new Fish();
     var validationResult = fluentFishValidator.GetValidationResult(fish);
     validationResult.HasErrors.Should().Be.True();
     validationResult.ValidationIssues.Should().Have.Count.EqualTo(1);
     validationResult.ValidationIssues.Single().PropertyName.Should().Be.EqualTo("Name");
 }
Exemplo n.º 2
0
        public void TestMethod1()
        {
            var fluentFishValidator = new FluentFishValidator();
            var fish             = new Fish();
            var validationResult = fluentFishValidator.GetValidationResult(fish);

            validationResult.HasErrors.Should().Be.True();
            validationResult.ValidationIssues.Should().Have.Count.EqualTo(1);
            validationResult.ValidationIssues.Single().PropertyName.Should().Be.EqualTo("Name");
        }