예제 #1
0
        public void BasicEquality_StaticEqualsReferenceTest()
        {
            Food_Sample banana1 = new Food_Sample("banana");
            Food_Sample banana2 = new Food_Sample("banana");

            Assert.IsFalse(object.Equals(banana1, banana2));
        }
예제 #2
0
        public void BasicEquality_BasicInequality()
        {
            Food_Sample banana    = new Food_Sample("banana");
            Food_Sample chocolate = new Food_Sample("chocolate");

            Assert.AreNotEqual(banana, chocolate);
        }