public virtual bool CheckThat <U>(U actual, string summary, Matcher <U> matcher)
        {
            AssertionItem item = CustomAssertions.CheckThat(summary, actual, matcher);

            log.Info(summary + ": " + item.Result.passed().ToString());
            if (item.Result.passed())
            {
                return(true);
            }
            else
            {
                Assert.False(true, summary + " returned false");
                return(false);
            }
        }
Esempio n. 2
0
        public static AssertionItem CheckThat <T>(string summary, T actual, Matcher <T> matcher)
        {
            AssertionItem item = AssertThat(summary, actual, matcher);

            return(item);
        }