-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7899 from drewnoakes/dev17.2-fix-source-item-repo…
…rting [17.2] Fix source item reporting
- Loading branch information
Showing
5 changed files
with
80 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...icrosoft.VisualStudio.ProjectSystem.Managed.UnitTests/Mocks/ISourceItemsHandlerFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. | ||
|
||
using System; | ||
using System.Collections.Immutable; | ||
using Microsoft.VisualStudio.ProjectSystem.VS; | ||
using Moq; | ||
|
||
namespace Microsoft.VisualStudio.ProjectSystem.LanguageServices | ||
{ | ||
internal static class ISourceItemsHandlerFactory | ||
{ | ||
public static ISourceItemsHandler ImplementHandle(Action<IComparable, IImmutableDictionary<string, IProjectChangeDescription>, ContextState, IProjectDiagnosticOutputService> action) | ||
{ | ||
var mock = new Mock<ISourceItemsHandler>(); | ||
|
||
mock.Setup(h => h.Handle(It.IsAny<IComparable>(), It.IsAny<IImmutableDictionary<string, IProjectChangeDescription>>(), It.IsAny<ContextState>(), It.IsAny<IProjectDiagnosticOutputService>())) | ||
.Callback(action); | ||
|
||
return mock.Object; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters