Beispiel #1
0
        public void MissingEqualSignReturnsEmptyString()
        {
            const string expression = "5 + 3";

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

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