summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/TestBase.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-01-29 08:04:48 -0800
committerAndrew <andrewarnott@gmail.com>2009-01-29 08:10:59 -0800
commit6da8acfa0ddc095ae3e9ba9fb884db53764c3f1d (patch)
treec56fff5fae6ec74a8988e3fa3b22a47c0ce79369 /src/DotNetOpenAuth.Test/TestBase.cs
parentfd7dfdcf439eb1869ff83dfdfac58536691c187f (diff)
downloadDotNetOpenAuth-6da8acfa0ddc095ae3e9ba9fb884db53764c3f1d.zip
DotNetOpenAuth-6da8acfa0ddc095ae3e9ba9fb884db53764c3f1d.tar.gz
DotNetOpenAuth-6da8acfa0ddc095ae3e9ba9fb884db53764c3f1d.tar.bz2
Refactored test helpers to remove TestSupport and move its functionality into OpenIdTestBase.
Diffstat (limited to 'src/DotNetOpenAuth.Test/TestBase.cs')
-rw-r--r--src/DotNetOpenAuth.Test/TestBase.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Test/TestBase.cs b/src/DotNetOpenAuth.Test/TestBase.cs
index 9ec0858..0d84a0d 100644
--- a/src/DotNetOpenAuth.Test/TestBase.cs
+++ b/src/DotNetOpenAuth.Test/TestBase.cs
@@ -5,6 +5,7 @@
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Test {
+ using System.IO;
using System.Reflection;
using DotNetOpenAuth.OAuth.Messages;
using log4net;
@@ -15,9 +16,16 @@ namespace DotNetOpenAuth.Test {
/// </summary>
public class TestBase {
/// <summary>
- /// The logger that tests should use.
+ /// The full path to the directory that contains the test ASP.NET site.
/// </summary>
- internal static readonly ILog TestLogger = LogManager.GetLogger("DotNetOpenAuth.Test");
+ internal static readonly string TestWebDirectory = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), @"..\..\..\..\src\DotNetOpenAuth.TestWeb"));
+
+ /// <summary>
+ /// Gets the logger that tests should use.
+ /// </summary>
+ internal static ILog TestLogger {
+ get { return TestUtilities.TestLogger; }
+ }
/// <summary>
/// Gets or sets the test context which provides