public When_solution_file_with_valid_project_is_given() { this.fileSystem = SetupFileSytemWithTestSolutionContaining(@" Project(""{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"") = ""c24.Deputy"", ""c24.Deputy\c24.Deputy.csproj"", ""{A85A6B8A-3743-4E17-857A-C0496F63FB84}"" EndProject "); this.reference = new VsSolutionParser(this.fileSystem) .ParseProjectReferences(TestSolutionFileName)[0]; }
public Given_a_valid_project_reference() { this.xmlDocumentLoaderMock = SetupXmlDocumentLoaderMock(@"<?xml version='1.0'?> <Project xmlns='http://schemas.microsoft.com/developer/msbuild/2003'> <ItemGroup> <ProjectReference Include='TestLibrary.proj'> <Project>{a85a6b8a-3743-4e17-857a-c0496f63fb85}</Project> <Name>TestLibrary</Name> </ProjectReference> </ItemGroup> </Project> "); this.references = new MsBuildProjectParser(this.xmlDocumentLoaderMock.Object) .ParseProjectReferences(TestProjectFileName); this.reference = this.references[0]; }