Exemple #1
0
 /// <summary>
 /// Asserts that an object is not null.  If the object is null, the assertion fails.
 /// </summary>
 public static void AssertNotNull(object assertion)
 {
     try
     {
         _testFramework.AssertNotNull(assertion);
     }
     catch (Exception ex)
     {
         throw new AssertionException(ex.Message);
     }
 }
Exemple #2
0
 public void CannotCallAssertNotNullWithNullValue(ITestFramework testClass)
 {
     Assert.Throws <ArgumentNullException>(() => testClass.AssertNotNull(default(ExpressionSyntax)));
 }