示例#1
0
            public void Should_be_not_equal_if_they_are_different_types()
            {
                Mammal a = new Mammal
                {
                    HasDiaphragm   = true,
                    HasSweatGlands = true
                };
                FakeMammal b = new FakeMammal
                {
                    HasDiaphragm   = true,
                    HasSweatGlands = true
                };

                Assert.IsFalse(a.Equals(b), "a should not be equal to b");
            }
示例#2
0
 public UnitDog()
 {
     d = new Dog();
     f = new FakeMammal();
 }