Skip to content

Commit 31bd25a

Browse files
committed
Minor integration test fix
1 parent e741182 commit 31bd25a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Tests/Adobe.Target.Client.Test/Util/IntegrationTestUtils.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,17 @@ public static EquivalencyAssertionOptions<DeliveryRequest> RootRequestEquivalenc
210210
ctx.Subject.Should().Be(ctx.Expectation);
211211
})
212212
.When(info => info.Type == typeof(long?))
213+
.Using<double?>(ctx =>
214+
{
215+
if (ctx.Expectation == -999)
216+
{
217+
ctx.Subject.Should().BePositive();
218+
return;
219+
}
220+
221+
ctx.Subject.Should().Be(ctx.Expectation);
222+
})
223+
.When(info => info.Type == typeof(double?))
213224
.Using<int?>(ctx =>
214225
{
215226
if (ctx.Expectation == -999)

0 commit comments

Comments
 (0)