Ejemplo n.º 1
0
        public void TestMoreThanOneMultiplication()
        {
            Dollar five = new Dollar(5);

            Assert.Equal(new Dollar(10), five.Times(2));;
            Assert.Equal(new Dollar(15), five.Times(3));
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            Dollar dollar = (Dollar)obj;

            return(this.Amount == dollar.Amount);
        }