Skip to content

Commit

Permalink
Change test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlew421 committed Jul 24, 2023
1 parent f524ab0 commit 4738ef2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Test/SubscriptionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -861,10 +861,12 @@ public void CreateSubscriptionWithCustomRamps()
var fromService = Subscriptions.Get(subscription.Uuid);
fromService.RampIntervals.Count.Should().Be(5);

var now = DateTime.Now

Check failure on line 864 in Test/SubscriptionTest.cs

View workflow job for this annotation

GitHub Actions / Dotnet 5.0.x tests

; expected

Check failure on line 864 in Test/SubscriptionTest.cs

View workflow job for this annotation

GitHub Actions / Dotnet 5.0.x tests

; expected

fromService.RampIntervals[0].StartingBillingCycle.Should().Be(1);
fromService.RampIntervals[0].UnitAmountInCents.Should().Be(500);
fromService.RampIntervals[0].StartingOn.Should().BeOfType(typeof(DateTime));
fromService.RampIntervals[0].EndingOn.Should().BeOfType(typeof(DateTime));
fromService.RampIntervals[0].StartingOn.Should().BeOnOrAfter(now);
fromService.RampIntervals[0].EndingOn.Should().BeOnOrAfter(now);
fromService.RampIntervals[1].StartingBillingCycle.Should().Be(3);
fromService.RampIntervals[1].UnitAmountInCents.Should().Be(1000);
fromService.RampIntervals[2].StartingBillingCycle.Should().Be(4);
Expand Down

0 comments on commit 4738ef2

Please sign in to comment.