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();
        }
Ejemplo n.º 2
0
        public void QuarterAbout()
        {
            //Arrange
            Quarter q;

            //Act
            q = new Quarter();

            //Assert
            Assert.AreEqual("Quarter is from 2019. It is worth 0.25. It was made in Denver", q.About());
        }
Ejemplo n.º 3
0
        public void QuarterAbout()
        {
            //Arrange
            q = new Quarter();
            //Act

            //Assert
            Assert.AreEqual("US Quarter is from 2017. It is worth $0.25. It was made in Denver.", q.About());
        }