コード例 #1
0
        public void TestEqualsWithDifferentObject()
        {
            TestDrawContext testContext1 = new TestDrawContext();
            TestDrawContext testContext2 = new TestDrawContext();

            Assert.IsFalse(testContext1.Equals((object)testContext2));
        }
コード例 #2
0
        public void TestEqualsWithIncompatibleObject()
        {
            TestDrawContext testContext = new TestDrawContext();

            Assert.IsFalse(testContext.Equals(123));
        }
コード例 #3
0
        public void TestEqualsWithSameObject()
        {
            TestDrawContext testContext = new TestDrawContext();

            Assert.IsTrue(testContext.Equals((object)testContext));
        }
コード例 #4
0
 public void TestEqualsWithIncompatibleObject() {
   TestDrawContext testContext = new TestDrawContext();
   Assert.IsFalse(testContext.Equals(123));
 }
コード例 #5
0
 public void TestEqualsWithDifferentObject() {
   TestDrawContext testContext1 = new TestDrawContext();
   TestDrawContext testContext2 = new TestDrawContext();
   Assert.IsFalse(testContext1.Equals((object)testContext2));
 }
コード例 #6
0
 public void TestEqualsWithSameObject() {
   TestDrawContext testContext = new TestDrawContext();
   Assert.IsTrue(testContext.Equals((object)testContext));
 }