Ejemplo n.º 1
0
        public void IsSatisfiedBy(string input, bool expected)
        {
            var  specification = new EmailSpecification();
            bool actual        = specification.IsSatisfiedBy(input);

            Assert.Equal(expected, actual);
        }
            public void InvalidCandidate_ReturnFalse(string candidate)
            {
                var sut = new EmailSpecification();

                var result = sut.IsSatisfiedBy(candidate);

                Assert.False(result);
            }
            public void InvalidCandidate_ReturnExpectedResultObject(string candidate, SpecificationResult expected)
            {
                var sut = new EmailSpecification();

                var overall = sut.IsSatisfiedBy(candidate, out var result);

                Assert.False(overall);
                Assert.Equal(expected, result, new SpecificationResultComparer(candidate));
            }