public void ConvertNotation_3D6()
        {
            var infix = RollNotationParser.Convert("3d6");

            Assert.AreEqual(3, infix[0].Total, "Instruction 1");
            Assert.AreEqual(RollNotation.D, infix[1].Instruction, "Instruction 2");
            Assert.AreEqual(6, infix[2].Total, "Instruction 3");
        }
        public void Parse_3D6()
        {
            var postfix = RollNotationParser.Parse("3d6");

            Assert.AreEqual(3, postfix.Dequeue().Total, "Instruction 1");
            Assert.AreEqual(6, postfix.Dequeue().Total, "Instruction 2");
            Assert.AreEqual(RollNotation.D, postfix.Dequeue().Instruction, "Instruction 3");
        }
        public void Validate_MissMatchParens()
        {
            var validation = RollNotationParser.Validate("1d6)d(5+36*2");

            Assert.IsFalse(validation.IsGood);
        }
        public void Validate_TooManyCloseParens()
        {
            var validation = RollNotationParser.Validate("1d6)d(5)+36*2");

            Assert.IsFalse(validation.IsGood);
        }
        public void Validate_Good()
        {
            var validation = RollNotationParser.Validate("(1d6)d(5)+36*2");

            Assert.IsTrue(validation.IsGood);
        }