Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 3453a4e

Browse files
committed
Fix test that wasn't compiling.
1 parent aeb733c commit 3453a4e

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/GitHub.VisualStudio/GitHub.VisualStudio.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@
368368
</ProjectReference>
369369
<ProjectReference Include="..\GitHub.StartPage\GitHub.StartPage.csproj">
370370
<Project>{50e277b8-8580-487a-8f8e-5c3b9fbf0f77}</Project>
371+
<PrivateAssets>All</PrivateAssets>
371372
<Name>GitHub.StartPage</Name>
372373
<Private>True</Private>
373374
<IncludeOutputGroupsInVSIX>BuiltProjectOutputGroup;GetCopyToOutputDirectoryItems;DebugSymbolsProjectOutputGroup;PkgdefProjectOutputGroup</IncludeOutputGroupsInVSIX>

test/GitHub.VisualStudio.UnitTests/Commands/OpenFromClipboardCommandTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ public class OpenFromClipboardCommandTests
1515
{
1616
public class TheExecuteMethod
1717
{
18-
//[Test]
19-
//public async Task NothingInClipboard()
20-
//{
21-
// var vsServices = Substitute.For<IVSServices>();
22-
// vsServices.ShowMessageBoxInfo(null).Returns(VSConstants.MessageBoxResult.IDOK);
23-
// var target = CreateOpenFromClipboardCommand(vsServices: vsServices, contextFromClipboard: null);
18+
[Test]
19+
public async Task NothingInClipboard()
20+
{
21+
var vsServices = Substitute.For<IVSServices>();
22+
vsServices.ShowMessageBoxInfo(null).Returns(VSConstants.MessageBoxResult.IDOK);
23+
var target = CreateOpenFromClipboardCommand(vsServices: vsServices, contextFromClipboard: null);
2424

25-
// await target.Execute(null);
25+
await target.Execute(null);
2626

27-
// vsServices.Received(1).ShowMessageBoxInfo(Resources.NoGitHubUrlMessage);
28-
//}
27+
vsServices.Received(1).ShowMessageBoxInfo(Resources.NoGitHubUrlMessage);
28+
}
2929

3030
[Test]
3131
public async Task NoLocalRepository()

test/GitHub.VisualStudio.UnitTests/GitHub.VisualStudio.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<ItemGroup>
2222
<PackageReference Include="Codecov" Version="1.1.0" />
23-
<PackageReference Include="Madskristensen.VisualStudio.SDK" Version="15.8.75-pre" />
23+
<PackageReference Include="Madskristensen.VisualStudio.SDK" Version="14.3.75-pre" />
2424
<PackageReference Include="NSubstitute" Version="2.0.3" />
2525
<PackageReference Include="NUnit" version="3.9.0" />
2626
<PackageReference Include="OpenCover" Version="4.6.519" />

0 commit comments

Comments
 (0)