PageRenderTime 27ms CodeModel.GetById 18ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/src/NUnit/core/NullListener.cs

#
C# | 41 lines | 21 code | 11 blank | 9 comment | 0 complexity | c48aeb0c2b8e2f1c75222aa89b45e60a MD5 | raw file
 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
 7using System;
 8
 9namespace NUnit.Core
10{
11	/// <summary>
12	/// Summary description for NullListener.
13	/// </summary>
14	/// 
15	[Serializable]
16	public class NullListener : EventListener
17	{
18		public void RunStarted( string name, int testCount ){ }
19
20		public void RunFinished( TestResult result ) { }
21
22		public void RunFinished( Exception exception ) { }
23
24		public void TestStarted(TestName testName){}
25			
26		public void TestFinished(TestResult result){}
27
28		public void SuiteStarted(TestName testName){}
29
30		public void SuiteFinished(TestResult result){}
31
32		public void UnhandledException( Exception exception ) {}
33
34		public void TestOutput(TestOutput testOutput) {}
35
36		public static EventListener NULL
37		{
38			get { return new NullListener();}
39		}
40	}
41}