public void Should_Include_And_Exclude_Files_If_Specified() { // Given var fixture = new NuGetToolContentResolverFixture("nuget:?package=Foo&exclude=./**/*.dll&include=./**/*.XML&include=Bar/Qux.pdb"); fixture.FileSystem.CreateFile("/Working/tools/Foo/Foo.exe"); fixture.FileSystem.CreateFile("/Working/tools/Foo/Foo.dll"); fixture.FileSystem.CreateFile("/Working/tools/Foo/Foo.pdb"); fixture.FileSystem.CreateFile("/Working/tools/Foo/Bar/Qux.pdb"); fixture.FileSystem.CreateFile("/Working/tools/Foo/Foo.XML"); // When var files = fixture.GetFiles(); // Then Assert.Equal(3, files.Count); Assert.Contains(files, p => p.Path.FullPath == "/Working/tools/Foo/Foo.exe"); Assert.Contains(files, p => p.Path.FullPath == "/Working/tools/Foo/Bar/Qux.pdb"); Assert.Contains(files, p => p.Path.FullPath == "/Working/tools/Foo/Foo.XML"); }