This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
test/GitHub.VisualStudio.UnitTests Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff line change 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" />
You can’t perform that action at this time.
0 commit comments