コード例 #1
0
        public void Equals_False_ByProperty()
        {
            var simpleRule1 = new GreaterThan("cieo", 10);
            var simpleRule2 = new GreaterThan("ciao", 10);

            Assert.That(simpleRule1, Is.Not.EqualTo(simpleRule2));
        }
コード例 #2
0
        public void Equals_True_1()
        {
            var simpleRule1 = new GreaterThan("ciao", 10);
            var simpleRule2 = new GreaterThan("ciao", 10);

            Assert.That(simpleRule1, Is.EqualTo(simpleRule2));
        }