Beispiel #1
0
        public void PrefixToInfixThrowsExceptionIfIncorrect(string prefix, string exceptionMessage)
        {
            var       sut       = new ExpressionsConverter();
            Exception exception = null;

            try
            {
                sut.ConvertPrefixToInfix(prefix);
            }
            catch (Exception e)
            {
                exception = e;
            }

            exception.Message.Should().Be(exceptionMessage);
        }
Beispiel #2
0
        public void PrefixToInfix(string prefix, string infix)
        {
            var sut = new ExpressionsConverter();

            sut.ConvertPrefixToInfix(prefix).Should().Be(infix);
        }