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