public static EqualAssert AreEqual(this AimpIntegrationTest testClass, object expected, object current, string message) { return(testClass.AreEqual(expected, current, string.Empty, message)); }
public static NotNullAssert NotNull <TResult>(this AimpIntegrationTest testClass, Expression <Func <TResult> > current, string message = null) { var assert = new NotNullAssert(current.GetExpressionMemberName(), current.GetExpressionValue(), message); testClass.Asserts.Add(assert); return(assert); }
public static FalseAssert IsFalse(this AimpIntegrationTest testClass, bool value) { var assert = new FalseAssert(null, value, null); testClass.Asserts.Add(assert); return(assert); }
public static NotNullAssert NotNull(this AimpIntegrationTest testClass, object current, string fieldName = null, string message = null) { var assert = new NotNullAssert(fieldName, current, message); testClass.Asserts.Add(assert); return(assert); }
public static EqualAssert AreEqual <TResult>(this AimpIntegrationTest testClass, object expected, Expression <Func <TResult> > current, string message = null) { var assert = new EqualAssert(current.GetExpressionMemberName(), current.GetExpressionValue(), expected, message); testClass.Asserts.Add(assert); return(assert); }
public static TException Throw <TException>(this AimpIntegrationTest testClass, TestDelegate action) where TException : Exception { var assert = new ThrowAssert <TException>(action); testClass.Asserts.Add(assert); return((TException)assert.CatchedException); }
public static EqualAssert AreEqual(this AimpIntegrationTest testClass, object expected, object current, string fieldName = null, string message = null) { var assert = new EqualAssert(fieldName, current, expected, message); try { AddAssertion(testClass, assert); return(assert); } finally { assert.Validate(); } }
public static void Null <TResult>(this AimpIntegrationTest testClass, Expression <Func <TResult> > current) { testClass.Asserts.Add(new NullAssert(current.GetExpressionMemberName(), current.GetExpressionValue(), null)); }
public static AimpActionResult Result(this AimpIntegrationTest testClass, ActionResultType result) { return(new AimpActionResult(result)); }
public static AimpActionResult OKResult(this AimpIntegrationTest testClass) { return(new AimpActionResult(ActionResultType.OK)); }