Ejemplo n.º 1
0
        public static void ExceptionWasNotThrownForTestType <T>(IdiomaticAssertion idiomaticAssertion)
        {
            var exception = Record.Exception(
                () => idiomaticAssertion.Verify(typeof(T)));

            Assert.Null(exception);
        }
Ejemplo n.º 2
0
        public static void ExceptionWasThrownForTestType <TException, TTestType>(IdiomaticAssertion sut)
        {
            var exception = Record.Exception(
                () => sut.Verify(typeof(TTestType)));

            Assert.IsType <TException>(exception);
        }