public void RestoreCommandPreferSolutionFile() { // Arrange var fileSystem = new MockFileSystem(); fileSystem.AddFile("a.sln"); fileSystem.AddFile("packages.config"); var restoreCommand = new RestoreCommand() { FileSystem = fileSystem }; // Act restoreCommand.DetermineRestoreMode(); // Assert Assert.True(restoreCommand.RestoringForSolution); Assert.Equal(fileSystem.GetFullPath("a.sln"), restoreCommand.SolutionFileFullPath); }