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/?p=license&r=2.4.
5 // ****************************************************************
6 
7 namespace NUnit.Framework
8 {
9 	using System;
10 
11 	/// <summary>
12 	/// Obsolete class, formerly used to identify tests through
13 	/// inheritance. Avoid using this class for new tests.
14 	/// </summary>
15 	[TestFixture]
16 	[Obsolete("use TestFixture attribute instead of inheritance",false)]
17 	public class TestCase : Assertion
18 	{
19 		/// <summary>
20 		/// Method called immediately before running the test.
21 		/// </summary>
22 		[SetUp]
23 		[Obsolete("use SetUp attribute instead of naming convention",false)]
SetUp()24 		protected virtual void SetUp()
25 		{}
26 
27 		/// <summary>
28 		/// Method Called immediately after running the test. It is
29 		/// guaranteed to be called, even if an exception is thrown.
30 		/// </summary>
31 		[TearDown]
32 		[Obsolete("use TearDown attribute instead of naming convention",false)]
TearDown()33 		protected virtual void TearDown()
34 		{}
35 	}
36 }
37