From 31bd25abcd8e1acb199f07d8267aa4c2e86047bb Mon Sep 17 00:00:00 2001 From: Andrei Anischevici Date: Thu, 2 Jun 2022 13:59:01 +0300 Subject: [PATCH] Minor integration test fix --- .../Util/IntegrationTestUtils.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Tests/Adobe.Target.Client.Test/Util/IntegrationTestUtils.cs b/Tests/Adobe.Target.Client.Test/Util/IntegrationTestUtils.cs index 5ffd6a4..1af9c51 100644 --- a/Tests/Adobe.Target.Client.Test/Util/IntegrationTestUtils.cs +++ b/Tests/Adobe.Target.Client.Test/Util/IntegrationTestUtils.cs @@ -210,6 +210,17 @@ public static EquivalencyAssertionOptions RootRequestEquivalenc ctx.Subject.Should().Be(ctx.Expectation); }) .When(info => info.Type == typeof(long?)) + .Using(ctx => + { + if (ctx.Expectation == -999) + { + ctx.Subject.Should().BePositive(); + return; + } + + ctx.Subject.Should().Be(ctx.Expectation); + }) + .When(info => info.Type == typeof(double?)) .Using(ctx => { if (ctx.Expectation == -999)