More work and tests
This commit is contained in:
parent
9bd9ca1512
commit
dcaea8c7ca
13 changed files with 389 additions and 69 deletions
|
@ -45,5 +45,15 @@ namespace Microsoft.Extensions.DependencyModel.Tests
|
|||
|
||||
return new AndConstraint<JsonAssetions>(this);
|
||||
}
|
||||
|
||||
public AndWhichConstraint<JsonAssetions, JObject> HavePropertyAsObject(string expected)
|
||||
{
|
||||
return HaveProperty(expected).Subject.Should().BeOfType<JObject>();
|
||||
}
|
||||
|
||||
public AndConstraint<ObjectAssertions> HavePropertyValue<T>(string expected, T value)
|
||||
{
|
||||
return HaveProperty(expected).Subject.Value<T>().Should().Be(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue