예제 #1
0
        public void DiceConstructorTwoArgs()
        {
            Dice target = new Dice(2);

            Assert.AreEqual(2, target.Count);
            Assert.AreEqual(0, target.Modifier);
            Assert.AreEqual("2d", target.ToString());
        }
예제 #2
0
        public void DiceConstructor()
        {
            Dice target = new Dice(3, 2);

            Assert.AreEqual(3, target.Count);
            Assert.AreEqual(2, target.Modifier);
            Assert.AreEqual("3d+2", target.ToString());
        }