Exemple #1
0
        void ITestRunnerEventSink.NotifyUnitStarted(TestUnitStartedEventArgs e)
        {
            switch (e.TestUnit.Type)
            {
            case TestUnitType.Assembly:
                OnAssemblyStarted(new TestAssemblyStartedEventArgs(e));
                break;

            case TestUnitType.Namespace:
                OnNamespaceStarted(new TestNamespaceStartedEventArgs(e));
                break;

            case TestUnitType.Class:
                OnClassStarted(new TestClassStartedEventArgs(e));
                break;

            case TestUnitType.SubjectClassBinding:
                OnSubjectClassBindingStarted(new TestSubjectClassBindingStartedEventArgs(e));
                break;

            case TestUnitType.Theory:
                OnTheoryStarted(new TestTheoryStartedEventArgs(e));
                break;

            case TestUnitType.Fact:
            case TestUnitType.Case:
                OnCaseStarted(new TestCaseStartedEventArgs(e));
                break;
            }
            OnUnitStarted(e);
        }
Exemple #2
0
 protected virtual void OnUnitStarted(TestUnitStartedEventArgs e)
 {
     if (UnitStarted != null)
     {
         UnitStarted(this, e);
     }
 }
Exemple #3
0
 internal TestCaseStartedEventArgs(TestUnitStartedEventArgs inner)
 {
     _inner = inner;
 }
 internal TestSubjectClassBindingStartedEventArgs(TestUnitStartedEventArgs inner)
 {
     _inner = inner;
 }
 internal TestAssemblyStartedEventArgs(TestUnitStartedEventArgs inner)
 {
     _inner = inner;
 }
Exemple #6
0
 internal TestTheoryStartedEventArgs(TestUnitStartedEventArgs inner)
 {
     _inner = inner;
 }
 private void events_TestUnitStarted(object sender, TestUnitStartedEventArgs e)
 {
     OnUnitStarted(e);
 }
 protected virtual void OnUnitStarted(TestUnitStartedEventArgs e)
 {
     DefaultMessage(e);
 }
 internal TestNamespaceStartedEventArgs(TestUnitStartedEventArgs inner)
 {
     _inner = inner;
 }