Multiply() public method

public Multiply ( int factor ) : IMoney
factor int
return IMoney
Exemplo n.º 1
0
        public void SimpleMultiply()
        {
            // [14 CHF] *2 == [28 CHF]
            Money expected = new Money(28, "CHF");

            Assert.AreEqual(expected, f14CHF.Multiply(2));
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        public void TestSimpleMultiply()
        {
            // [14 CHF] *2 == [28 CHF]
            Money expected = new Money(28, "CHF");

            Assertion.AssertEquals(expected, f14CHF.Multiply(2));
        }