PageRenderTime 26ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. // ****************************************************************
  2. // This is free software licensed under the NUnit license. You
  3. // may obtain a copy of the license as well as information regarding
  4. // copyright ownership at http://nunit.org.
  5. // ****************************************************************
  6. using System;
  7. namespace NUnit.Core
  8. {
  9. /// <summary>
  10. /// Summary description for NullListener.
  11. /// </summary>
  12. ///
  13. [Serializable]
  14. public class NullListener : EventListener
  15. {
  16. public void RunStarted( string name, int testCount ){ }
  17. public void RunFinished( TestResult result ) { }
  18. public void RunFinished( Exception exception ) { }
  19. public void TestStarted(TestName testName){}
  20. public void TestFinished(TestResult result){}
  21. public void SuiteStarted(TestName testName){}
  22. public void SuiteFinished(TestResult result){}
  23. public void UnhandledException( Exception exception ) {}
  24. public void TestOutput(TestOutput testOutput) {}
  25. public static EventListener NULL
  26. {
  27. get { return new NullListener();}
  28. }
  29. }
  30. }