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 DimeAbout()
        {
            //Arrange
            d = new Dime();
            //Act

            //Assert
            Assert.AreEqual("US Dime is from 2017. It is worth $0.10. It was made in Denver.", d.About());
        }
Exemplo n.º 3
0
        public void DimeAbout()
        {
            //Arrange
            Dime d;

            //Act
            d = new Dime();

            //Assert
            Assert.AreEqual("Dime is from 2019. It is worth 0.1. It was made in Denver", d.About());
        }
        public void DimeAbout()
        {
            //Arrange

            double dimeValue = .10;

            //Act

            //Assert
            Assert.AreEqual($"US Dime is from { System.DateTime.Now.Year }. It is worth ${ dimeValue}. It was made in Denver", d.About());
        }