From 9c7811b93cfec5cf57f1bd9d07d44b682f00c0eb Mon Sep 17 00:00:00 2001 From: tmont Date: Mon, 20 Apr 2009 00:24:03 +0000 Subject: [PATCH] removed console log handler test --- SimpleLog.Tests/ConsoleLogHandlerTest.cs | 35 ------------------------ SimpleLog.Tests/SimpleLog.Tests.csproj | 6 ++-- 2 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 SimpleLog.Tests/ConsoleLogHandlerTest.cs diff --git a/SimpleLog.Tests/ConsoleLogHandlerTest.cs b/SimpleLog.Tests/ConsoleLogHandlerTest.cs deleted file mode 100644 index be6581f..0000000 --- a/SimpleLog.Tests/ConsoleLogHandlerTest.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using NUnit.Framework; -using NUnit.Framework.SyntaxHelpers; - -namespace SimpleLog.Tests { - [TestFixture] - public class ConsoleLogHandlerTest { - - private ConsoleLogHandler handler; - - [SetUp] - public void Init() { - handler = new ConsoleLogHandler(); - } - - [Test] - public void TestLog() { - Assert.That(this.handler.Log("yay", Framework.LogLevel.Fatal)); - Assert.That(this.handler.Log("yay", Framework.LogLevel.Debug)); - } - - [Test] - public void TestGetOutputStream() { - Assert.That(this.handler.GetOutputStream(ConsoleLogHandler.STD_ERROR_HANDLE), Is.SameAs(Console.Error)); - Assert.That(this.handler.GetOutputStream(ConsoleLogHandler.STD_OUTPUT_HANDLE), Is.SameAs(Console.Out)); - } - - [Test] - public void TestAccessors() { - Assert.That(handler.MessageHandler, Is.TypeOf(typeof(DefaultMessageHandler))); - Assert.That(handler.LogLevel, Is.EqualTo(SimpleLog.Framework.LogLevel.None)); - } - - } -} diff --git a/SimpleLog.Tests/SimpleLog.Tests.csproj b/SimpleLog.Tests/SimpleLog.Tests.csproj index 64b8072..4bb2a5c 100644 --- a/SimpleLog.Tests/SimpleLog.Tests.csproj +++ b/SimpleLog.Tests/SimpleLog.Tests.csproj @@ -6,13 +6,14 @@ 9.0.30729 2.0 {4ECCF9B6-8A33-4D17-97EA-BA2D9D9178DD} - Exe + Library Properties SimpleLog.Tests SimpleLog.Tests v3.5 512 - SimpleLog.Tests.ConsoleColorTest + + true @@ -43,7 +44,6 @@ -