public void ResolveRefreshPathsReturnsEmptyCollectionIfNoRefreshFilesAreFoundInBin() { // Arrange var fileSystem = new MockFileSystem(); // Act var resolvedPaths = fileSystem.ResolveRefreshPaths(); // Assert Assert.Empty(resolvedPaths); }
public void ResolvedRefreshPathsIgnoresFilesThatDoNotExist() { // Arrange var fileSystem = new MockFileSystem(); fileSystem.AddFile(@"bin\Foo.refresh", "x:\foo.dll"); fileSystem.AddFile(@"bin\bar.refresh", "bar.dll"); fileSystem.AddFile(@"C:\MockFileSystem\bar.dll"); // Act var resolvedPaths = fileSystem.ResolveRefreshPaths(); // Assert Assert.Equal(new[] { @"C:\MockFileSystem\bar.dll" }, resolvedPaths); }
public void ResolvedRefreshPathsIgnoresPathsThatAreNotAssemblyReferences() { // Arrange var fileSystem = new MockFileSystem(); fileSystem.AddFile(@"bin\Foo.refresh", "foo.dll"); fileSystem.AddFile(@"bin\qux.refresh", "qux.exe"); fileSystem.AddFile(@"bin\bar.refresh", "bar.pdb"); fileSystem.AddFile(@"C:\MockFileSystem\foo.dll"); fileSystem.AddFile(@"C:\MockFileSystem\qux.exe"); // Act var resolvedPaths = fileSystem.ResolveRefreshPaths(); // Assert Assert.Equal(new[] { @"C:\MockFileSystem\foo.dll", @"C:\MockFileSystem\qux.exe" }, resolvedPaths); }