diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-08-30 17:09:22 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-08-30 17:09:22 -0700 |
commit | 4a94bcfb7963abcbf602dfa1e1ea9b894985668f (patch) | |
tree | 95ef3746ecf0f87abb658db36f113c3baf680be5 /src/YOURLIBNAME.Test/TestBase.cs | |
download | DotNetOpenAuth-4a94bcfb7963abcbf602dfa1e1ea9b894985668f.zip DotNetOpenAuth-4a94bcfb7963abcbf602dfa1e1ea9b894985668f.tar.gz DotNetOpenAuth-4a94bcfb7963abcbf602dfa1e1ea9b894985668f.tar.bz2 |
Initial build system version.
Diffstat (limited to 'src/YOURLIBNAME.Test/TestBase.cs')
-rw-r--r-- | src/YOURLIBNAME.Test/TestBase.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/YOURLIBNAME.Test/TestBase.cs b/src/YOURLIBNAME.Test/TestBase.cs new file mode 100644 index 0000000..3c9788f --- /dev/null +++ b/src/YOURLIBNAME.Test/TestBase.cs @@ -0,0 +1,25 @@ +using System.Reflection;
+using log4net;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+
+namespace YOURLIBNAME.Test {
+ public class TestBase {
+ internal readonly static ILog Logger = LogManager.GetLogger("YOURLIBNAME.Test");
+
+ /// <summary>
+ /// Gets or sets the test context which provides
+ /// information about and functionality for the current test run.
+ /// </summary>
+ public TestContext TestContext { get; set; }
+
+ [TestInitialize]
+ public virtual void SetUp() {
+ log4net.Config.XmlConfigurator.Configure(Assembly.GetExecutingAssembly().GetManifestResourceStream("YOURLIBNAME.Test.Logging.config"));
+ }
+
+ [TestCleanup]
+ public virtual void Cleanup() {
+ log4net.LogManager.Shutdown();
+ }
+ }
+}
|