Beispiel #1
0
        public void Apply_AppliesThePercentageToTheAmountGiven()
        {
            var fiftyPercent = new DecimalPercentage(50);

            Assert.That(fiftyPercent.Apply(100L), Is.EqualTo(50m));
            Assert.That(fiftyPercent.Apply(100m), Is.EqualTo(50m));
        }