예제 #1
0
        public void Test_Equals_NotOk()
        {
            ICoffee c1 = _factory.CreateCoffee("Espresso");
            ICoffee c2 = _factory.CreateCoffee("Cappuccino");

            Assert.IsFalse(c1.Equals(c2));
        }
예제 #2
0
        public void Test_Equals_Ok()
        {
            ICoffee c1 = _factory.CreateCoffee("Espresso");
            ICoffee c2 = _factory.CreateCoffee("Espresso");

            Assert.IsTrue(c1.Equals(c2));
        }