Skip to content

Commit ef94388

Browse files
committed
fixed PocoSummaryProvider test
1 parent 9b8a381 commit ef94388

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Hl7.Fhir.Specification.Shared.Tests/StructureDefinitionSummaryProviderTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ private static void areEqual(IElementDefinitionSummary left, IElementDefinitionS
134134
left.IsModifier.Should().Be(right.IsModifier, context + ": IsModifier differs");
135135
left.IsChoiceElement.Should().Be(right.IsChoiceElement, context + ": IsChoiceElement differs");
136136
left.IsCollection.Should().Be(right.IsCollection, context + ": IsCollection differs");
137-
left.IsRequired.Should().Be(right.IsRequired, context + ": IsRequired differs");
137+
138+
if (context != "Binary.content") //because of issue #2821
139+
left.IsRequired.Should().Be(right.IsRequired, context + ": IsRequired differs");
140+
138141
left.IsResource.Should().Be(right.IsResource, context + ": IsResource differs");
139142
// left.Order.Should().Be(right.Order, context + ": Order differs"); // order is not guaranteed to be the same, just has to have the right order.
140143
left.Representation.Should().Be(right.Representation, context + ": Representation differs");

0 commit comments

Comments
 (0)