コード例 #1
0
        public void GetBreadPriceWithVisitor()
        {
            Bread bread = new Bread(1);

            double taxedPrice = bread.Accept(TaxVisitor.Instance);

            Assert.AreEqual(1.234, taxedPrice);
        }