Exemplo n.º 1
0
        public void MissingEqualSignReturnsEmptyString()
        {
            const string expression = "5 + 3";

            Assert.That(EvaluationHelper.ExtractExpressionPart(expression), Is.EqualTo(String.Empty));
        }
Exemplo n.º 2
0
        public void ExtractExpressionPartFromString()
        {
            const string expression = "c = 5 + 3";

            Assert.That(EvaluationHelper.ExtractExpressionPart(expression), Is.EqualTo("5 + 3"));
        }