Actually fix tests
This commit is contained in:
parent
1658a40806
commit
f73e447cfc
2 changed files with 5 additions and 14 deletions
|
@ -62,12 +62,13 @@ namespace Microsoft.Extensions.DependencyModel.Tests
|
|||
{
|
||||
var context = Read(
|
||||
@"{
|
||||
""runtimeTarget"": "".NETStandardApp,Version=v1.5/osx.10.10-x64""
|
||||
""runtimeTarget"": "".NETStandardApp,Version=v1.5/osx.10.10-x64"",
|
||||
""targets"": {
|
||||
"".NETStandardApp,Version=v1.5"": {},
|
||||
"".NETStandardApp,Version=v1.5/osx.10.10-x64"": {}
|
||||
}
|
||||
}");
|
||||
context.IsPortable.Should().BeTrue();
|
||||
context.IsPortable.Should().BeFalse();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -161,10 +162,7 @@ namespace Microsoft.Extensions.DependencyModel.Tests
|
|||
{
|
||||
var context = Read(
|
||||
@"{
|
||||
""runtimeTarget"": {
|
||||
""portable"": true,
|
||||
""name"": "".NETStandardApp,Version=v1.5"",
|
||||
},
|
||||
""runtimeTarget"": "".NETStandardApp,Version=v1.5"",
|
||||
""targets"": {
|
||||
"".NETStandardApp,Version=v1.5"": {
|
||||
""MyApp/1.0.1"": {
|
||||
|
|
|
@ -97,14 +97,7 @@ namespace Microsoft.Extensions.DependencyModel.Tests
|
|||
"runtime",
|
||||
true)
|
||||
);
|
||||
var runtimeTarget = result.Should().HaveProperty("runtimeTarget")
|
||||
.Subject.Should().BeOfType<JObject>().Subject;
|
||||
|
||||
runtimeTarget.Should().HaveProperty("name")
|
||||
.Subject.Value<string>().Should().Be("Target");
|
||||
|
||||
runtimeTarget.Should().HaveProperty("portable")
|
||||
.Subject.Value<bool>().Should().Be(true);
|
||||
result.Should().HavePropertyValue("runtimeTarget", "Target");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue