mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Add failing unit test for comparing black and default color
This commit is contained in:
		 AdmiringWorm
					AdmiringWorm
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							2e7b3d520a
						
					
				
				
					commit
					b0341862cf
				
			| @@ -78,6 +78,20 @@ namespace Spectre.Console.Tests.Unit | ||||
|                 // Then | ||||
|                 result.ShouldBeFalse(); | ||||
|             } | ||||
|  | ||||
|             [Fact] | ||||
|             public void Shourd_Not_Consider_Black_And_Default_Colors_Equal() | ||||
|             { | ||||
|                 // Given | ||||
|                 var color1 = Color.Default; | ||||
|                 var color2 = Color.Black; | ||||
|  | ||||
|                 // When | ||||
|                 var result = color1.Equals(color2); | ||||
|  | ||||
|                 // Then | ||||
|                 result.ShouldBeFalse(); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         public sealed class TheGetHashCodeMethod | ||||
|   | ||||
		Reference in New Issue
	
	Block a user