Skip to content

Commit

Permalink
Update SnapshotGeneratorTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzautke authored Jan 10, 2025
1 parent 32c8bbf commit 965c8f3
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,19 @@ public async Tasks.Task TestConstraintSources()

}

[TestMethod]
public async T.Task TestConstraintSourceDom6()
{
var communication = await _testResolver.FindStructureDefinitionAsync("http://hl7.org/fhir/StructureDefinition/Communication");
_generator = new SnapshotGenerator(_testResolver, _settings);

var snapshot = await _generator.GenerateAsync(communication);

Assert.IsTrue(communication.Snapshot?.Element
.Where(e => e.Path == "Communication").FirstOrDefault()
.Constraint.Any(c => c.Key == "dom-6" && c.Source == "http://hl7.org/fhir/StructureDefinition/DomainResource") == true);
}

[TestMethod]
public async Tasks.Task GenerateSnapshotForExternalProfiles()
{
Expand Down Expand Up @@ -10255,4 +10268,4 @@ private StructureDefinition createR5StructureDefinition()
};
}
}
}
}

0 comments on commit 965c8f3

Please sign in to comment.