public void ShouldFindFilePathOnAnyElement()
 {
     const string doc = @"
     <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
       <ItemGroup>
     <SomethingStrange Include=""THIS.txt"" />
     </ItemGroup>
     </Project>
     ";
     var folder = "c:\\" + RandomString.Make();
     var path = folder + "\\someproj.csproj";
     var fileContent = new FileReaderStub(doc.Split(Environment.NewLine.ToCharArray()));
     var target = new FilesInProject(fileContent);
     target.FilePaths(path)
         .Should().Have.SameValuesAs(Path.Combine(folder, @"THIS.txt"));
 }
 public void ShouldNotFindBothIncludedAndExcludedFiles()
 {
     const string doc = @"
     <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
       <ItemGroup>
     <Compile Include=""THIS.cs"" />
     <Compile Exclude=""THIS.cs"" />
     </ItemGroup>
     </Project>
     ";
     var folder = "c:\\" + RandomString.Make();
     var path = folder + "\\someproj.csproj";
     var fileContent = new FileReaderStub(doc.Split(Environment.NewLine.ToCharArray()));
     var target = new FilesInProject(fileContent);
     target.FilePaths(path)
         .Should().Be.Empty();
 }