Skip to content

Commit

Permalink
[mmptest] Less hardcoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Oct 26, 2018
1 parent 7449e51 commit 93e7286
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/mmptest/mmptest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<Compile Include="src\RegistrarTests.cs" />
<Compile Include="src\AssemblyReferencesTests.cs" />
<Compile Include="src\PackageReferenceTests.cs" />
<Compile Include="..\..\tools\mmp\SdkVersions.cs">
<Link>SdkVersions.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
Expand Down
2 changes: 1 addition & 1 deletion tests/mmptest/src/FrameworkLinksTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void AssertFrameworkMinOSRespected (Dictionary <string, LinkStatus> status)
}
}
else {
linkStatus = currentFramework.Version > new Version (10, 9) ? LinkStatus.Weak : LinkStatus.Strong;
linkStatus = currentFramework.Version > SdkVersions.MinOSXVersion ? LinkStatus.Weak : LinkStatus.Strong;
}
Assert.AreEqual (linkStatus, entry.Value, $"Framework link status of {entry.Key} was {entry.Value} but expected to be {linkStatus}");
}
Expand Down

0 comments on commit 93e7286

Please sign in to comment.