removed console log handler test

This commit is contained in:
tmont 2009-04-20 00:24:03 +00:00
parent e0853422a4
commit 9c7811b93c
2 changed files with 3 additions and 38 deletions

View File

@ -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));
}
}
}

View File

@ -6,13 +6,14 @@
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4ECCF9B6-8A33-4D17-97EA-BA2D9D9178DD}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SimpleLog.Tests</RootNamespace>
<AssemblyName>SimpleLog.Tests</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>SimpleLog.Tests.ConsoleColorTest</StartupObject>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,7 +44,6 @@
<ItemGroup>
<Compile Include="ConfigTest.cs" />
<Compile Include="ConsoleColorTest.cs" />
<Compile Include="ConsoleLogHandlerTest.cs" />
<Compile Include="DefaultLoggerTest.cs" />
<Compile Include="DefaultMessageHandlerTest.cs" />
<Compile Include="LoggerManagerTest.cs" />