Beispiel #1
0
        public void TestNullStruct()
        {
            var a = new DemoStruct();

            a.Id   = 1;
            a.Name = null;

            var b = new DemoStruct();

            b.Id   = 2;
            b.Name = null;

            Assert.IsTrue(!_objectEquality.IsEqual(a, b));
        }
Beispiel #2
0
        public void TestStructError()
        {
            var a = new DemoStruct();

            a.Id   = 1;
            a.Name = "Test";

            var b = new DemoStruct();

            b.Id   = 2;
            b.Name = "Test";

            Assert.IsTrue(!_objectEquality.IsEqual(a, b));
        }