Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.

Commit 005319a

Browse files
author
Iain Scott
committed
Simplify attribute test.
1 parent 4208b36 commit 005319a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/Winton.DomainModelling.DocumentDb.Tests/EntityDocumentTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ private void ShouldSerializePropertyNameAsLowercase()
103103
{
104104
typeof(EntityDocument<TestEntity, EntityId>)
105105
.GetProperty(nameof(EntityDocument<TestEntity, EntityId>.Id))
106-
.Should().BeDecoratedWith<JsonPropertyAttribute>().Which.PropertyName
107-
.Should().Be("id");
106+
.Should().BeDecoratedWith<JsonPropertyAttribute>(a => a.PropertyName == "id");
108107
}
109108
}
110109

0 commit comments

Comments
 (0)