static void Main(string[] args)
        {
            Console.WriteLine("Coininator 9000");

            //Make some Coins
            Nickel     n    = new Nickel();
            Penny      p    = new Penny();
            Quarter    q    = new Quarter();
            Dime       d    = new Dime();
            HalfDollar hd   = new HalfDollar();
            DollarCoin doll = new DollarCoin();

            Console.WriteLine("List of US Coins\n");

            Console.WriteLine(n.About());
            Console.WriteLine(p.About());
            Console.WriteLine(q.About());
            Console.WriteLine(d.About());
            Console.WriteLine(hd.About());
            Console.WriteLine(doll.About());


            Console.ReadKey();
        }
Exemplo n.º 2
0
        public void DollarCoinAbout()
        {
            //Arrange
            DollarCoin dc;

            //Act
            dc = new DollarCoin();

            //Assert
            Assert.AreEqual("Dollar Coin is from 2019. It is worth 1. It was made in Denver", dc.About());
        }
Exemplo n.º 3
0
        public void DollarCoinAbout()
        {
            //Arrange
            c = new DollarCoin();
            //Act

            //Assert
            Assert.AreEqual("US Dollar Coin is from 2017. It is worth $1.00. It was made in Denver.", c.About());
        }