public void Coin100AddJarTest() { Coin100 coin100 = new Coin100(); Jar jar = new Jar(); //add the $1 coin to the jar coin100.AddToJar(jar); //assert jar.Coin100Counter is 1 and jar.CurrentAmount is $1.00 Assert.AreEqual(1, jar.Coin100Counter); Assert.AreEqual(1.00m, jar.CurrentAmount); }
public void FillUpwith100CentCoinTest() { Jar jar = new Jar(); Coin100 coin100 = new Coin100(); //fill up with $1 coins while (coin100.AddToJar(jar)) { ; } jar.PrintJar(); }