예제 #1
0
        public void DefaultConfiguration()
        {
            var sut = DeepEqualityComparer.CreateDefault <string>();

            var result = sut.Equals("a", "b");

            Assert.That(result, Is.False);
        }
예제 #2
0
        public void CompareSomeObjects()
        {
            var so1 = new SomeObject {
                Number = 12, Text = "abc"
            };
            var so2 = new SomeObject {
                Number = 12, Text = "abc"
            };

            Assert.Equal(so2, so1, DeepEqualityComparer.CreateDefault <SomeObject>());
        }