public void Should_publish_failure_on_invalid_xml() { var project = getProject(Path.GetFullPath("someproject.csproj"), ""); _appender.Append(project, new CompileFile("somefile.cs")); Assert.That(project.Content, Is.EqualTo("")); }
public void Should_publish_faliure_when_file_does_not_exist() { var fs = MockRepository.GenerateMock <IFS>(); var appender = new VSFileAppender(fs); var project = getProject(Path.GetFullPath("someproject.csproj"), "<Project><ItemGroup><Compile Include=\"BuildRunners\\MSBuildOutputParser.cs\" /></ItemGroup></Project>"); appender.Append(project, new CompileFile("somefile.cs")); Assert.That(project.Content, Is.EqualTo("<Project><ItemGroup><Compile Include=\"BuildRunners\\MSBuildOutputParser.cs\" /></ItemGroup></Project>")); }