diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-31 20:43:56 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-08-31 20:43:56 -0700 |
commit | 22f2e18dfaeff7ab1be6f6f26f7321eaac94e749 (patch) | |
tree | a853ba924f7c2d47bee05b3533b9352a36205a00 /src/YOURLIBNAME.Test/TestBase.cs | |
parent | ba57c42a89f8267db4b2dd8673f23ce826e0b151 (diff) | |
download | DotNetOpenAuth-22f2e18dfaeff7ab1be6f6f26f7321eaac94e749.zip DotNetOpenAuth-22f2e18dfaeff7ab1be6f6f26f7321eaac94e749.tar.gz DotNetOpenAuth-22f2e18dfaeff7ab1be6f6f26f7321eaac94e749.tar.bz2 |
Added more StyleCop rules.
Diffstat (limited to 'src/YOURLIBNAME.Test/TestBase.cs')
-rw-r--r-- | src/YOURLIBNAME.Test/TestBase.cs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/YOURLIBNAME.Test/TestBase.cs b/src/YOURLIBNAME.Test/TestBase.cs index 94b2f4f..5a9c94f 100644 --- a/src/YOURLIBNAME.Test/TestBase.cs +++ b/src/YOURLIBNAME.Test/TestBase.cs @@ -1,9 +1,20 @@ -namespace YOURLIBNAME.Test {
+//-----------------------------------------------------------------------
+// <copyright file="TestBase.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+namespace YOURLIBNAME.Test {
using System.Reflection;
using log4net;
using Microsoft.VisualStudio.TestTools.UnitTesting;
+ /// <summary>
+ /// The base class that all test classes inherit from.
+ /// </summary>
public class TestBase {
+ /// <summary>
+ /// The logger that tests should use.
+ /// </summary>
internal static readonly ILog Logger = LogManager.GetLogger("YOURLIBNAME.Test");
/// <summary>
@@ -12,11 +23,17 @@ /// </summary>
public TestContext TestContext { get; set; }
+ /// <summary>
+ /// The TestInitialize method for the test cases.
+ /// </summary>
[TestInitialize]
public virtual void SetUp() {
log4net.Config.XmlConfigurator.Configure(Assembly.GetExecutingAssembly().GetManifestResourceStream("YOURLIBNAME.Test.Logging.config"));
}
+ /// <summary>
+ /// The TestCleanup method for the test cases.
+ /// </summary>
[TestCleanup]
public virtual void Cleanup() {
log4net.LogManager.Shutdown();
|