public void PathCodeLocation() { var codeCommand = UxManager.GetParsedCommand("code --wait"); Assert.Equal("code", codeCommand.FileName); Assert.Equal(" --wait", codeCommand.Arguments); }
public void EscapedCodeLocationWithoutArg() { var codeCommand = UxManager.GetParsedCommand(@"'C:\Users\lulansky\AppData\Local\Programs\Microsoft VS Code\Code.exe'"); codeCommand.FileName.Should().Be(@"C:\Users\lulansky\AppData\Local\Programs\Microsoft VS Code\Code.exe"); codeCommand.Arguments.Should().Be(""); }
public void EscapedCodeLocationWithoutArg() { var codeCommand = UxManager.GetParsedCommand(@"'C:\Users\lulansky\AppData\Local\Programs\Microsoft VS Code\Code.exe'"); Assert.Equal(@"C:\Users\lulansky\AppData\Local\Programs\Microsoft VS Code\Code.exe", codeCommand.FileName); Assert.Equal("", codeCommand.Arguments); }
public void PathCodeLocation() { var codeCommand = UxManager.GetParsedCommand("code --wait"); codeCommand.FileName.Should().Be("code"); codeCommand.Arguments.Should().Be(" --wait"); }