Actually fix tests

This commit is contained in:
Pavel Krymets 2016-03-04 15:09:21 -08:00
parent 1658a40806
commit f73e447cfc
2 changed files with 5 additions and 14 deletions

View file

@ -62,12 +62,13 @@ namespace Microsoft.Extensions.DependencyModel.Tests
{ {
var context = Read( var context = Read(
@"{ @"{
""runtimeTarget"": "".NETStandardApp,Version=v1.5/osx.10.10-x64"" ""runtimeTarget"": "".NETStandardApp,Version=v1.5/osx.10.10-x64"",
""targets"": { ""targets"": {
"".NETStandardApp,Version=v1.5"": {},
"".NETStandardApp,Version=v1.5/osx.10.10-x64"": {} "".NETStandardApp,Version=v1.5/osx.10.10-x64"": {}
} }
}"); }");
context.IsPortable.Should().BeTrue(); context.IsPortable.Should().BeFalse();
} }
[Fact] [Fact]
@ -161,10 +162,7 @@ namespace Microsoft.Extensions.DependencyModel.Tests
{ {
var context = Read( var context = Read(
@"{ @"{
""runtimeTarget"": { ""runtimeTarget"": "".NETStandardApp,Version=v1.5"",
""portable"": true,
""name"": "".NETStandardApp,Version=v1.5"",
},
""targets"": { ""targets"": {
"".NETStandardApp,Version=v1.5"": { "".NETStandardApp,Version=v1.5"": {
""MyApp/1.0.1"": { ""MyApp/1.0.1"": {

View file

@ -97,14 +97,7 @@ namespace Microsoft.Extensions.DependencyModel.Tests
"runtime", "runtime",
true) true)
); );
var runtimeTarget = result.Should().HaveProperty("runtimeTarget") result.Should().HavePropertyValue("runtimeTarget", "Target");
.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);
} }
[Fact] [Fact]