public virtual bool test() { ITested tested = getTested(); tested.say(); return(false); // demo test always fails }
public virtual bool test() { ITested tested = getTested(); tested.say(); return(true); // demo test always passes }
public virtual bool test() { ITested tested = getTested(); bool result = tested.say(); return(result); // demo test always passes }
public virtual bool test() { ITested tested = getTested(); tested.say(); Exception ex = new Exception("this test always throws an exception"); if (tested != null) { throw ex; } return(false); // demo test always fails }
public virtual bool test() { ITested tested = getTested(); int value = tested.say(1, 0); //Console.WriteLine(value); if (value == 10) { return(true); } else { return(false); } }
public virtual bool test() { ITested tested = getTested(); return(tested.say("Testing CodeToTest3.dll")); }
public virtual void test() { ITested tested = getTested(); tested.say(); }