예제 #1
0
        public void ParseWithArguments()
        {
            var x = ProgramExecutable.Parse("Accelerator -port 5000");

            Assert.Equal("Accelerator", x.FileName);
            Assert.Equal("-port 5000", x.Arguments);
        }
예제 #2
0
        public void ParseWithoutArguments()
        {
            var x = ProgramExecutable.Parse("Nginx");

            Assert.Equal("Nginx", x.FileName);
            Assert.Null(null);
        }