Exemplo n.º 1
0
 public void GivenAInvalidPercentage_ThrowException(string valueUnderTest)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => ParserHelperMethods.GetValidPercentAsDeciamal(valueUnderTest));
 }
Exemplo n.º 2
0
 public void GivenAValidPercentage_ReturnTheDecimal(string valueUnderTest, decimal expecteDecimal)
 {
     Assert.That(ParserHelperMethods.GetValidPercentAsDeciamal(valueUnderTest), Is.EqualTo(expecteDecimal));
 }