示例#1
0
 public string DescribeFor(object actual)
 {
     try
     {
         AssertionsExecutionLoop.Execute(_assertionActions, (T)actual);
         return(string.Empty);
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }
示例#2
0
 public bool IsSatisfiedBy(object actual)
 {
     try
     {
         AssertionsExecutionLoop.Execute(_assertionActions, (T)actual);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }