Skip to content

Commit

Permalink
Minor integration test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XDex committed Jun 2, 2022
1 parent e741182 commit 31bd25a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tests/Adobe.Target.Client.Test/Util/IntegrationTestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@ public static EquivalencyAssertionOptions<DeliveryRequest> RootRequestEquivalenc
ctx.Subject.Should().Be(ctx.Expectation);
})
.When(info => info.Type == typeof(long?))
.Using<double?>(ctx =>
{
if (ctx.Expectation == -999)
{
ctx.Subject.Should().BePositive();
return;
}
ctx.Subject.Should().Be(ctx.Expectation);
})
.When(info => info.Type == typeof(double?))
.Using<int?>(ctx =>
{
if (ctx.Expectation == -999)
Expand Down

0 comments on commit 31bd25a

Please sign in to comment.