Ejemplo n.º 1
0
        public void Generate_project_file_in_default_directory()
        {
            _projectFileGenerator.Generate();

            string expectedDirectoryPath = "./CompiledProject/";
            string expectedFilePath      = Path.Join(expectedDirectoryPath, "CompiledProject.csproj");

            Assert.True(File.Exists(expectedFilePath));

            Cleanup(expectedDirectoryPath);
        }
        public void Generate_writes_csproj_text_to_file()
        {
            string csprojText = _projectFileGenerator.GetCsprojText();

            string path = _projectFileGenerator.Generate();

            Assert.Equal(csprojText, _mockFileSystem.File.ReadAllText(path));
        }