mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 02:25:28 +08:00 
			
		
		
		
	restructured MarkupTokenizer a bit.
This commit is contained in:
		
				
					committed by
					
						
						Patrik Svensson
					
				
			
			
				
	
			
			
			
						parent
						
							540bc1307c
						
					
				
				
					commit
					00a9ba325e
				
			@@ -141,5 +141,18 @@ public partial class AnsiConsoleTests
 | 
			
		||||
            result.ShouldBeOfType<InvalidOperationException>()
 | 
			
		||||
                .Message.ShouldBe("Encountered closing tag when none was expected near position 5.");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void Should_Not_Get_Confused_When_Mixing_Escaped_And_Unescaped()
 | 
			
		||||
        {
 | 
			
		||||
            // Given
 | 
			
		||||
            var console = new TestConsole();
 | 
			
		||||
 | 
			
		||||
            // When
 | 
			
		||||
            console.Markup("[grey][[grey]][/][white][[white]][/]");
 | 
			
		||||
 | 
			
		||||
            // Then
 | 
			
		||||
            console.Output.ShouldBe("[grey][white]");
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user