From e179fff48344c720c7735684ac408d69c13438c3 Mon Sep 17 00:00:00 2001 From: Mathias Ormstrup Bjerregaard Date: Fri, 20 Dec 2024 12:46:17 +0100 Subject: [PATCH] split quality for ebix and cim --- .../MessageParserTests.cs | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/source/Tests/CimMessageAdapter/Messages/MeteredDataForMeasurementPointMessageParserTests/MessageParserTests.cs b/source/Tests/CimMessageAdapter/Messages/MeteredDataForMeasurementPointMessageParserTests/MessageParserTests.cs index f8a989705..66f611b07 100644 --- a/source/Tests/CimMessageAdapter/Messages/MeteredDataForMeasurementPointMessageParserTests/MessageParserTests.cs +++ b/source/Tests/CimMessageAdapter/Messages/MeteredDataForMeasurementPointMessageParserTests/MessageParserTests.cs @@ -121,8 +121,30 @@ public async Task Successfully_parsed(DocumentFormat format, Stream message) energyObservation.Should().NotBeNull(); energyObservation.Position.Should().Be(position.ToString()); energyObservation.EnergyQuantity.Should().NotBeEmpty(); - energyObservation.QuantityQuality.Should() - .Match(quality => quality == null || quality == "E01" || quality == "56" || quality == "A03" || quality == "A02" || quality == "A05"); + + if (format != DocumentFormat.Ebix) + { + energyObservation.QuantityQuality.Should() + .Match( + quality => quality == null + || quality == "A01" + || quality == "A02" + || quality == "A03" + || quality == "A04" + || quality == "A05" + || quality == "A06"); + } + else + { + energyObservation.QuantityQuality.Should() + .Match( + quality => quality == null + || quality == "56" + || quality == "D01" + || quality == "36" + || quality == "E01"); + } + position++; } }