示例#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);
 }