Răsfoiți Sursa

Fix use case of 2 esc in a row

tznind 11 luni în urmă
părinte
comite
88922c2f43
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      UnitTests/ConsoleDrivers/AnsiResponseParserTests.cs

+ 2 - 1
UnitTests/ConsoleDrivers/AnsiResponseParserTests.cs

@@ -180,8 +180,9 @@ public class AnsiResponseParserTests (ITestOutputHelper output)
         AssertReleased (input, ref i, "\x1B",0);
 
         // Assume 50ms or something has passed, lets force release as no new content
+
         // It should be the second escape that gets released (i.e. index 1)
-        AssertManualReleaseIs (input,1);
+        AssertManualReleaseIs ("\x1B",1);
     }
 
     private Tuple<char, int> [] StringToBatch (string batch)