//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.Test { using System.Reflection; using log4net; using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// The base class that all test classes inherit from. /// public class TestBase { /// /// The logger that tests should use. /// internal static readonly ILog Logger = LogManager.GetLogger("DotNetOAuth.Test"); /// /// Gets or sets the test context which provides /// information about and functionality for the current test run. /// public TestContext TestContext { get; set; } /// /// The TestInitialize method for the test cases. /// [TestInitialize] public virtual void SetUp() { log4net.Config.XmlConfigurator.Configure(Assembly.GetExecutingAssembly().GetManifestResourceStream("DotNetOAuth.Test.Logging.config")); } /// /// The TestCleanup method for the test cases. /// [TestCleanup] public virtual void Cleanup() { log4net.LogManager.Shutdown(); } } }