public void ExecuteMethodThrowsException() { var fixture = new TestFixture(typeof(Foo)); var tm = new TestMethod(fixture, typeof(Foo).GetMethod("MethodWithException")); tm.Execute(_listener); Assert.Equals(" MethodWithException", _sequence); Assert.StartsWith(" TS:MethodWithException TE:MethodWithException ", SimpleTestListener.Messages); }
public void ExecuteMethod() { var fixture = new TestFixture(typeof(Foo)); var tm = new TestMethod(fixture, typeof(Foo).GetMethod("AMethod")); tm.Execute( _listener); Assert.Equals(" AMethod", _sequence); Assert.Equals(" TS:AMethod TP:AMethod", SimpleTestListener.Messages); }
public void ExecuteMethod() { var fixture = new TestFixture(typeof(Foo)); var tm = new TestMethod(fixture, typeof(Foo).GetMethod("AMethod")); tm.Execute(_listener); Assert.Equals(" AMethod", _sequence); Assert.Equals(" TS:AMethod TP:AMethod", SimpleTestListener.Messages); }