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

Commit 7ce21a3

Browse files
committed
Fix non-compiling tests.
1 parent d52302a commit 7ce21a3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

test/GitHub.App.UnitTests/GitHub.App.UnitTests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@
135135
<HintPath>..\..\packages\Rx-PlatformServices.2.2.5-custom\lib\net45\System.Reactive.PlatformServices.dll</HintPath>
136136
<Private>True</Private>
137137
</Reference>
138+
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
139+
<HintPath>..\..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll</HintPath>
140+
</Reference>
138141
<Reference Include="System.Xaml" />
139142
<Reference Include="Microsoft.CSharp" />
140143
<Reference Include="System.Xml" />

test/GitHub.App.UnitTests/ViewModels/GitHubPane/IssueListViewModelBaseTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ protected static IPullRequestService CreatePullRequestService(int itemCount = 10
133133
protected static IRepositoryService CreateRepositoryService(string parentOwnerLogin = null)
134134
{
135135
var result = Substitute.For<IRepositoryService>();
136-
result.ReadParentOwnerLogin(null, null, null).ReturnsForAnyArgs(parentOwnerLogin);
136+
var parent = parentOwnerLogin != null ? (parentOwnerLogin, "name") : ((string, string)?)null;
137+
result.FindParent(null, null, null).ReturnsForAnyArgs(parent);
137138
return result;
138139
}
139140

test/GitHub.App.UnitTests/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@
4141
<package id="Rx-XAML" version="2.2.5-custom" targetFramework="net45" />
4242
<package id="Serilog" version="2.5.0" targetFramework="net461" />
4343
<package id="stdole" version="7.0.3300" targetFramework="net461" />
44+
<package id="System.ValueTuple" version="4.5.0" targetFramework="net461" />
4445
</packages>

0 commit comments

Comments
 (0)