コード例 #1
0
        public void PathCodeLocation()
        {
            var codeCommand = UxManager.GetParsedCommand("code --wait");

            Assert.Equal("code", codeCommand.FileName);
            Assert.Equal(" --wait", codeCommand.Arguments);
        }
コード例 #2
0
        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("");
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        public void PathCodeLocation()
        {
            var codeCommand = UxManager.GetParsedCommand("code --wait");

            codeCommand.FileName.Should().Be("code");
            codeCommand.Arguments.Should().Be(" --wait");
        }