Пример #1
0
 public void GivenAInvalidPercentage_ThrowException(string valueUnderTest)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => ParserHelperMethods.GetValidPercentAsDeciamal(valueUnderTest));
 }
Пример #2
0
 public void GivenAValidPercentage_ReturnTheDecimal(string valueUnderTest, decimal expecteDecimal)
 {
     Assert.That(ParserHelperMethods.GetValidPercentAsDeciamal(valueUnderTest), Is.EqualTo(expecteDecimal));
 }