public void _金銭を投入するが購入せず排出する() { var ctx = new PurchaseContext( TestHelper.InitInfinityReservedChange(), TestHelper.InitInfinityItems(ItemRackState.CanNotPurchase) ); ctx.ReceiveMoney(Money.Coin500); Assert.That(ctx.ReceivedTotal, Is.EqualTo(500)); ctx.ReceiveMoney(Money.Coin500); Assert.That(ctx.ReceivedTotal, Is.EqualTo(1000)); ctx.ReceiveMoney(Money.Coin100); Assert.That(ctx.ReceivedTotal, Is.EqualTo(1100)); var changes = ctx.Eject(); Assert.That(changes.TotalAmount(), Is.EqualTo(1100)); Assert.That(ctx.ReceivedTotal, Is.EqualTo(0)); }