Пример #1
0
        public void Test002()
        {
            var ac = new AssertionContext();

            assert.Throws <StateException>(() => ac.Pop());
        }
Пример #2
0
 public static void Throws <T>(this IAssertionTool assertTool, Expression <Func <object> > test, string message, params object[] fmt)
 {
     assertTool.Throws <T>(test, null, message, fmt);
 }
Пример #3
0
 public static void Throws <T>(this IAssertionTool assertTool, Expression <Func <object> > test)
 {
     assertTool.Throws <T>(test, null, null, null);
 }
Пример #4
0
 public static void Throws <T>(this IAssertionTool assertTool, Expression <Func <object> > test, string message)
 {
     assertTool.Throws <T>(test, null, "{0}", message);
 }
Пример #5
0
 public static void Throws <T>(this IAssertionTool assertTool, Expression <Action> test)
 {
     assertTool.Throws <T>(test, null, null, null);
 }