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 NickelAbout()
        {
            //Arrange
            Nickel n;

            //Act
            n = new Nickel();

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

            //Assert
            Assert.AreEqual("US Nickel is from 2017. It is worth $0.05. It was made in Denver.", n.About());
        }
Ejemplo n.º 4
0
        public void NickelAbout()
        {
            //Arrange
            Nickel n;

            //Act
            n = new Nickel();
            //Assert
            Assert.AreEqual($"US Nickel is from {System.DateTime.Now.Year}. It is worth $0.05. It was made in Denver", n.About());
        }