Пример #1
0
        public void Test_AreEqual()
        {
            Assert.Throws <CustomException>(
                () => Require.AreEqual <CustomException>(1, 2)
                );
            Assert.Throws <ArgumentException>(
                () => Require.AreEqual(1, 2)
                );

            Assert.DoesNotThrow(
                () => Require.AreEqual <CustomException>(1, 1)
                );
            Assert.DoesNotThrow(
                () => Require.AreEqual(1, 1)
                );
        }