removed console log handler test
This commit is contained in:
		
							parent
							
								
									e0853422a4
								
							
						
					
					
						commit
						9c7811b93c
					
				| @ -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)); |  | ||||||
| 		} |  | ||||||
| 
 |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| @ -6,13 +6,14 @@ | |||||||
|     <ProductVersion>9.0.30729</ProductVersion> |     <ProductVersion>9.0.30729</ProductVersion> | ||||||
|     <SchemaVersion>2.0</SchemaVersion> |     <SchemaVersion>2.0</SchemaVersion> | ||||||
|     <ProjectGuid>{4ECCF9B6-8A33-4D17-97EA-BA2D9D9178DD}</ProjectGuid> |     <ProjectGuid>{4ECCF9B6-8A33-4D17-97EA-BA2D9D9178DD}</ProjectGuid> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Library</OutputType> | ||||||
|     <AppDesignerFolder>Properties</AppDesignerFolder> |     <AppDesignerFolder>Properties</AppDesignerFolder> | ||||||
|     <RootNamespace>SimpleLog.Tests</RootNamespace> |     <RootNamespace>SimpleLog.Tests</RootNamespace> | ||||||
|     <AssemblyName>SimpleLog.Tests</AssemblyName> |     <AssemblyName>SimpleLog.Tests</AssemblyName> | ||||||
|     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> | ||||||
|     <FileAlignment>512</FileAlignment> |     <FileAlignment>512</FileAlignment> | ||||||
|     <StartupObject>SimpleLog.Tests.ConsoleColorTest</StartupObject> |     <StartupObject> | ||||||
|  |     </StartupObject> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||||||
|     <DebugSymbols>true</DebugSymbols> |     <DebugSymbols>true</DebugSymbols> | ||||||
| @ -43,7 +44,6 @@ | |||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|     <Compile Include="ConfigTest.cs" /> |     <Compile Include="ConfigTest.cs" /> | ||||||
|     <Compile Include="ConsoleColorTest.cs" /> |     <Compile Include="ConsoleColorTest.cs" /> | ||||||
|     <Compile Include="ConsoleLogHandlerTest.cs" /> |  | ||||||
|     <Compile Include="DefaultLoggerTest.cs" /> |     <Compile Include="DefaultLoggerTest.cs" /> | ||||||
|     <Compile Include="DefaultMessageHandlerTest.cs" /> |     <Compile Include="DefaultMessageHandlerTest.cs" /> | ||||||
|     <Compile Include="LoggerManagerTest.cs" /> |     <Compile Include="LoggerManagerTest.cs" /> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user