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(); }
public void HalfDollarAbout() { //Arrange h = new HalfDollar(); //Act //Assert Assert.AreEqual("US Half Dollar is from 2017. It is worth $0.50. It was made in Denver.", h.About()); }