예제 #1
0
        public void CanLoadAndRunSuiteFromSuiteProperty()
        {
            ITest suite = TestLoader.LoadAsSuite(typeof(MyTests));

            Assert.That(suite, Is.Not.Null, "Could not get suite");
            Assert.That(suite.TestCaseCount, Is.EqualTo(4));
            RecordingTestListener listener = new RecordingTestListener();

            suite.Run(listener);
            Assert.That(listener.Events, Is.EqualTo(
                            "<MyTests:<One::Success><Two::Success><TheTest::Failure><Three::Success>:Failure>"));
        }