Example #1
0
        public void Equality_override_works()
        {
            var item1 = new MethodSignature(typeof(int), typeof(string));
            var item2 = new MethodSignature(typeof(int), typeof(string));
            var item3 = new MethodSignature(typeof(DateTime), typeof(decimal));

            EqualityTester.TestEqualObjects(item1, item2);
            EqualityTester.TestUnequalObjects(item2, item3);
            EqualityTester.TestAgainstNull(item3);
        }
 public void TestAgainstNull_throws_exception_if_obj_null()
 {
     Assert.Throws <ArgumentNullException>(() => EqualityTester.TestAgainstNull <MethodSignature>(obj: null));
 }