コード例 #1
0
        public void TestReflectionEquals_DifferentTypes()
        {
            ReflectTest o1 = new ReflectTest(1, "hello", new ReflectTest(2, "sub", null));
            string      o2 = "testing";

            Assert.IsTrue(!o1.Equals(o2));
        }
コード例 #2
0
        public void TestReflectionEquals_NotEqualProperties()
        {
            ReflectTest o1 = new ReflectTest(1, "hello", new ReflectTest(2, "sub", null));
            ReflectTest o2 = new ReflectTest(1, "hello", null);

            Assert.IsTrue(!o1.Equals(o2));
        }
コード例 #3
0
		public void TestReflectionEquals_DifferentTypes()
		{
			ReflectTest o1 = new ReflectTest(1, "hello", new ReflectTest(2, "sub", null));
			string o2 = "testing";
			Assert.IsTrue(! o1.Equals(o2));
		}
コード例 #4
0
		public void TestReflectionEquals_NotEqualProperties()
		{
			ReflectTest o1 = new ReflectTest(1, "hello", new ReflectTest(2, "sub", null));
			ReflectTest o2 = new ReflectTest(1, "hello", null);
			Assert.IsTrue(! o1.Equals(o2));
		}
コード例 #5
0
		public void TestReflectionEquals_OneNull()
		{
			ReflectTest o1 = new ReflectTest(1, "hello", new ReflectTest(2, "sub", null));
			Assert.IsTrue(! o1.Equals(null));
		}
コード例 #6
0
        public void TestReflectionEquals_OneNull()
        {
            ReflectTest o1 = new ReflectTest(1, "hello", new ReflectTest(2, "sub", null));

            Assert.IsTrue(!o1.Equals(null));
        }