Exemple #1
0
        public void TestFrancMultiplication()
        {
            Franc five = new Franc(5);

            Assert.Equal(new Franc(10), five.Times(2));
            Assert.Equal(new Franc(15), five.Times(3));
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            Franc dollar = (Franc)obj;

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