public void EnryPointUtilities_GenerateArguments_StripsQuotesFromAroundArgsWithSpacesInResponseFiles()
        {
            const string ResponseFileName = "test.rsp";

            string[]    responseFileContents = new[] { "a \"one two\" b" };
            IFileSystem mockFileSystem       = MockFactory.MakeMockFileSystem(ResponseFileName, responseFileContents);

            string[] args = new[] { "@" + ResponseFileName };

            string[] result = EntryPointUtilities.GenerateArguments(args, mockFileSystem, MockFactory.MakeMockEnvironmentVariables());

            result.Length.Should().Be(3);
            result.Should().ContainInOrder("a", "one two", "b");
        }
        public void EnryPointUtilities_GenerateArguments_ExpandsResponseFileContents()
        {
            const string ResponseFileName = "test.rsp";

            string[]    responseFileContents = new[] { "/b", "/c:val /d", "   /e   " };
            IFileSystem mockFileSystem       = MockFactory.MakeMockFileSystem(ResponseFileName, responseFileContents);

            string[] args = new[] { "/a", "@" + ResponseFileName, "/f" };

            string[] result = EntryPointUtilities.GenerateArguments(args, mockFileSystem, MockFactory.MakeMockEnvironmentVariables());

            result.Length.Should().Be(6);
            result.Should().ContainInOrder("/a", "/b", "/c:val", "/d", "/e", "/f");
        }