Skip to content

Commit

Permalink
Prevent large random numbers from causing failed multiplication in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMooreZA committed Jan 20, 2019
1 parent bc314ae commit 08e704d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Giver.Tests/ComplexTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public void With_Many() {
[Fact]
public void ReadOnly_Property()
{
OrderLine orderLine = _give.Me<OrderLine>();
OrderLine orderLine = _give.Me<OrderLine>()
.With(ol => ol.Quantity = 1);

Assert.Equal(orderLine.Price * orderLine.Quantity, orderLine.TotalPrice);
}
Expand Down

0 comments on commit 08e704d

Please sign in to comment.