public void GetBearPriceWithVisitor() { Beer beer = new Beer(10); double taxedPrice = beer.Accept(TaxVisitor.Instance); Assert.AreEqual(30, taxedPrice); }
public void GetBearPriceWithVisitor() { Beer beer = new Beer(10); double taxedPrice = beer.Accept(TaxVisitor.Instance); Assert.AreEqual(30, taxedPrice); }