public void ParseTestLabel_ShouldRemoveTab() { var parser = new TecScanner(); var label = File.ReadAllText("TecLabel.txt"); var tokens = parser.Scan(label); var tab = tokens.Any(t => t.Command.Contains("\t")); Assert.IsFalse(tab); }
public void ParseTestLabel_ShouldRemoveNewline() { var parser = new TecScanner(); var label = File.ReadAllText("TecLabel.txt"); var tokens = parser.Scan(label); var newline = tokens.Any(t => t.Command.Contains("\n") || t.Command.Contains("\r")); Assert.IsFalse(newline); }