public void GumMakesChewChewSound() { Gum gum = new Gum("A1", "Spearmint", (decimal)1.00, "Gum"); string actualString = gum.MakeSound(); Assert.AreEqual("Chew Chew, Yum!", actualString, "Gum items should make chew sound."); }
public void GumExpectedSound() { Gum gum = new Gum("Some Gum", 3); string actual = gum.MakeSound(); Assert.AreEqual("Chew Chew, Yum!", actual, "Make sound for gum"); }
public void MakeSoundMethod_Normal() { Gum gum = new Gum("Chiclets", 0.75M); string sound = gum.MakeSound(); Assert.AreEqual("Chew Chew, Yum!", sound); }
public void MakeSoundMethod_Exceptions() { Gum gum = new Gum("", -15M); string sound = gum.MakeSound(); Assert.AreEqual("Chew Chew, Yum!", sound); gum = new Gum(null, 0); sound = gum.MakeSound(); Assert.AreEqual("Chew Chew, Yum!", sound); }
public void TestSound() { Chip testChip = new Chip("doritos", 1.50M); Assert.AreEqual("Crunch, Crunch, Yum!", testChip.MakeSound(), "Didn't make correct sound."); Candy testCandy = new Candy("hersheys", 2.00M); Assert.AreEqual("Munch, Munch, Yum!", testCandy.MakeSound(), "Didn't make correct sound."); Drink testDrink = new Drink("whiskey", 0.50M); Assert.AreEqual("Glug, Glug, Yum!", testDrink.MakeSound(), "Didn't make correct sound."); Gum testGum = new Gum("five", 3.00M); Assert.AreEqual("Chew, Chew, Yum!", testGum.MakeSound(), "Didn't make correct sound."); }
public void MakeSound() { Gum gumSound = new Gum("B1", "Big Red", 1.05M); Assert.AreEqual("Chew Chew, Yum!", gumSound.MakeSound()); }