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 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()); }
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()); }
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()); }