Skip to content

Commit

Permalink
Test Zero method with unitname
Browse files Browse the repository at this point in the history
  • Loading branch information
petermorlion committed Feb 21, 2018
1 parent dc21938 commit 66a071f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions RedStar.Amounts.Tests/AmountTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -607,5 +607,13 @@ public void Parsing03Test()

Assert.Equal(b, Amount.Parse("0", CultureInfo.InvariantCulture));
}

[Fact]
public void Zero_WithUnitName_ShouldReturnAmountWithZeroAndCorrectUnit()
{
var amount = Amount.Zero("meter");

Assert.Equal(new Amount(0, LengthUnits.Meter), amount);
}
}
}

0 comments on commit 66a071f

Please sign in to comment.