Exemple #1
0
        public void Test_SitDown()
        {
            var player = new DUser();
            var seat   = new DSeat();

            seat.Initialize();

            seat.SitDown(player, 50);

            Assert.True(seat.ChipTotal == 50);
            Assert.True(seat.Occupied);
            Assert.True(seat.Active);
        }
Exemple #2
0
        public void Test_StandUp()
        {
            var player = new DUser();

            player.ChipTotal += 50;
            var seat = new DSeat();

            seat.Initialize();
            seat.SitDown(player, 25);

            seat.StandUp();

            Assert.True(seat.ChipTotal == 0);
            Assert.False(seat.Occupied && seat.Active);
            Assert.True(player.ChipTotal == 75);
        }