Ejemplo n.º 1
0
        public void Equals_returns_false_when_both_sides_are_not_equals()
        {
            var spec = new TrueSpecification <string>();

            Assert.False(spec.Equals(null));
            Assert.False(spec.Equals(10));
            Assert.False(spec.Equals(new AdHocSpecification <string>(x => true)));
            Assert.False(spec.Equals(new TrueSpecification <object>()));
        }
Ejemplo n.º 2
0
        public void Equals_returns_true_when_both_sides_are_equals()
        {
            var spec1 = new TrueSpecification <string>();
            var spec2 = new TrueSpecification <string>();

            Assert.True(spec1.Equals(spec2));
        }