Skip to content

Commit

Permalink
added roundtrip tests for Datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsmits committed Oct 25, 2024
1 parent f90a4a3 commit 42cbbe6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ public void PocoAndSdSummaryProvidersShouldBeEqual()

AssertEqual(pocoSummary, sdSummary);
}

foreach (var item in ModelInfo.OpenTypes)
{
if (item == typeof(Canonical) || item == typeof(DataRequirement) || item == typeof(Signature) || item == typeof(Timing) || item == typeof(FhirUrl) || item == typeof(UsageContext)) continue;
var canonicalResource = ModelInfo.CanonicalUriForFhirCoreType(item);
var pocoSummary = pocoSdProvider.Provide(canonicalResource);
var sdSummary = sdProvide.Provide(canonicalResource);

AssertEqual(pocoSummary, sdSummary);
}
}


Expand Down

0 comments on commit 42cbbe6

Please sign in to comment.