コード例 #1
0
        public void if_Roll_One()
        {
            var theDice = new Dices.Dice();

            theDice.RollOne();

            theDice.result.Should().Be(1);
        }
コード例 #2
0
        public void Taken_off()
        {
            var theDice = new Dices.Dice();

            theDice.TakeOff();

            theDice.result.Should().Be(0);
        }
コード例 #3
0
        public void if_Roll_Dice()
        {
            var theDice = new Dices.Dice();

            theDice.Roll();

            theDice.result.Should().BeLessThan(7);
        }
コード例 #4
0
        public void Can_Create_Dice()
        {
            var theDice = new Dices.Dice();

            theDice.result.Should().Be(1);
        }