/src/NUnit/core/NullListener.cs
C# | 41 lines | 21 code | 11 blank | 9 comment | 0 complexity | c48aeb0c2b8e2f1c75222aa89b45e60a MD5 | raw file
Possible License(s): GPL-2.0
- // ****************************************************************
- // This is free software licensed under the NUnit license. You
- // may obtain a copy of the license as well as information regarding
- // copyright ownership at http://nunit.org.
- // ****************************************************************
-
- using System;
-
- namespace NUnit.Core
- {
- /// <summary>
- /// Summary description for NullListener.
- /// </summary>
- ///
- [Serializable]
- public class NullListener : EventListener
- {
- public void RunStarted( string name, int testCount ){ }
-
- public void RunFinished( TestResult result ) { }
-
- public void RunFinished( Exception exception ) { }
-
- public void TestStarted(TestName testName){}
-
- public void TestFinished(TestResult result){}
-
- public void SuiteStarted(TestName testName){}
-
- public void SuiteFinished(TestResult result){}
-
- public void UnhandledException( Exception exception ) {}
-
- public void TestOutput(TestOutput testOutput) {}
-
- public static EventListener NULL
- {
- get { return new NullListener();}
- }
- }
- }