Exemplo n.º 1
0
        public void PaidForOneHour_ApprovalWay_Manual()
        {
            var payStation = new PayStation();

            payStation.InsertCoin(1);
            payStation.InsertCoin(0.5m);
            var display = payStation.ReadDisplay();

            Assert.Equal("", display);
        }
Exemplo n.º 2
0
        public void PaidForOneHour_ApprovalWay_WithTool()
        {
            var payStation = new PayStation();

            payStation.InsertCoin(1);
            payStation.InsertCoin(0.5m);
            var display = payStation.ReadDisplay();

            Approvals.Verify(display);
        }
Exemplo n.º 3
0
        public void PaidForOneHour_ClassicWay()
        {
            var payStation = new PayStation();

            payStation.InsertCoin(1);
            payStation.InsertCoin(0.5m);
            var display = payStation.ReadDisplay();

            Assert.Equal("Paid:\t1,50 EUR\r\n" +
                         "Parking Time:\t1 Hour", display);
        }