From 2acfa01cee4253cb47443cba288af830094ef54b Mon Sep 17 00:00:00 2001 From: Marco Visser Date: Tue, 26 Jan 2021 15:42:51 +0100 Subject: [PATCH] Changed Assertion of test `TestSelectDifferentQuantities` --- common | 2 +- .../PocoTests/FhirPathTest.cs | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/common b/common index 1375abee72..f2bc8d99e9 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 1375abee72385f939d7f086af4effbe361097db9 +Subproject commit f2bc8d99e9ef3b644eedcabaf54bfa7be0d33960 diff --git a/src/Hl7.FhirPath.R4.Tests/PocoTests/FhirPathTest.cs b/src/Hl7.FhirPath.R4.Tests/PocoTests/FhirPathTest.cs index f87cb8dd2f..d165c5a6cb 100644 --- a/src/Hl7.FhirPath.R4.Tests/PocoTests/FhirPathTest.cs +++ b/src/Hl7.FhirPath.R4.Tests/PocoTests/FhirPathTest.cs @@ -282,26 +282,26 @@ public void TestSelectDifferentQuantities() { Id = "test", Status = ObservationStatus.Final, - Code = new CodeableConcept() { Text = "test"}, + Code = new CodeableConcept() { Text = "test" }, Value = new Quantity() { Value = 1, Code = "%", System = "http://unitsofmeasure.org" }, - Component = new List() - { + Component = new List() + { new Observation.ComponentComponent() - { - Code = new CodeableConcept() { Text = "test"}, - Value = new Quantity() - { - Value = 1, - Code = "L/min", - System = "http://unitsofmeasure.org" - } - } + { + Code = new CodeableConcept() { Text = "test"}, + Value = new Quantity() + { + Value = 1, + Code = "L/min", + System = "http://unitsofmeasure.org" + } + } } }; var typedElement = obs.ToTypedElement(); var result = typedElement.Select("(Observation.value as Quantity) | (Observation.component.value as Quantity)"); - Assert.AreEqual(1, result.Count()); + Assert.AreEqual(2, result.Count()); } } } \ No newline at end of file