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

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void Using_spec()
        {
            var spec = new NotEmptySpecification()
                       .And(new StartsWithSpecification("T"));

            var result = spec.IsSatisfied("Tahir");

            Assert.True(result);
        }