Skip to content

Commit 9801486

Browse files
committed
Merge MR #107 with small correction and test (only for escaped string)
1 parent ec15cba commit 9801486

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CodingSeb.ExpressionEvaluator.Tests/ExpressionEvaluatorTests.cs

+11
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,17 @@ public void Evaluate_ExceptionsNotThrownWhenInStringInterpolation()
16961696
Should.Throw<ExpressionEvaluatorSyntaxErrorException>(() => Console.WriteLine(evaluator.Evaluate("$\"Test two {Person.AnotherName.Trim()}\"")));
16971697
}
16981698

1699+
[Test]
1700+
[Category("Bug")]
1701+
[Category("MergeRequest")]
1702+
[Category("#107")]
1703+
public void Evaluate_DoubleDoubleQuotesInEscapedStringThrowException()
1704+
{
1705+
var evaluator = new ExpressionEvaluator();
1706+
1707+
evaluator.Evaluate("@\"Hello \"\" Joe\"").ShouldBe(@"Hello "" Joe");
1708+
}
1709+
16991710
#endregion
17001711

17011712
#region EvaluateWithSpecificEvaluator

0 commit comments

Comments
 (0)