Beispiel #1
0
        public void ToString_ScalarOfOne_RepresentationIsCorrect()
        {
            const int multiplicity = 3;
             const int sides = 6;
             var diceTerm = new DiceTerm( multiplicity, sides, 1 );

             string stringRepresentation = diceTerm.ToString();

             Assert.AreEqual( "3d6", stringRepresentation );
        }
Beispiel #2
0
        public void ToString_ChooseThree_RepresentationIsCorrect()
        {
            var diceTerm = new DiceTerm( 4, 6, 3, 1 );

             string stringRepresentation = diceTerm.ToString();

             Assert.AreEqual( "4d6k3", stringRepresentation );
        }