public void DoesNotTimeOut() { TestSpec ts = new TestSpec(); ts.Add(typeof(ClassWithTimedTests).FullName, "DoesNotTimeOut"); TestFixture tf = new TestFixture(typeof(ClassWithTimedTests), _listener); tf.RunTests(ts); Assert.Equals("DoesNotTimeOut", _sequence); }
public void TimesOut() { TestSpec ts = new TestSpec(); ts.Add(typeof(ClassWithTimedTests).FullName, "TimesOut"); TestFixture tf = new TestFixture(typeof(ClassWithTimedTests), _listener); tf.RunTests(ts); Assert.Equals("TimesOut", _sequence); Assert.Equals("Test was expected to finish within 100 milliseconds.", _listener.FailureMessage); }