Skip to content

Commit

Permalink
Tests for #109 NamedMethodParameters (for now failed)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingseb committed Aug 6, 2021
1 parent 8bb9b08 commit 5199ab1
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions CodingSeb.ExpressionEvaluator.Tests/ExpressionEvaluatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2570,6 +2570,48 @@ ExpressionEvaluator evaluatorForMethodArgs()
.Returns(45)
.SetCategory("DefaultValueMethod");

yield return new TestCaseData(evaluatorForMethodArgs()
, "paramsObj.SumOf(val2:3)"
, null)
.Returns(22)
.SetCategory("namedMethodParameter")
.SetCategory("DefaultValueMethod");

yield return new TestCaseData(evaluatorForMethodArgs()
, "paramsObj.SumOf(val2: 3)"
, null)
.Returns(22)
.SetCategory("namedMethodParameter")
.SetCategory("DefaultValueMethod");

yield return new TestCaseData(evaluatorForMethodArgs()
, "paramsObj.SumOf(val2: 3)"
, null)
.Returns(22)
.SetCategory("namedMethodParameter")
.SetCategory("DefaultValueMethod");

yield return new TestCaseData(evaluatorForMethodArgs()
, "paramsObj.SumOf( val2:3)"
, null)
.Returns(22)
.SetCategory("namedMethodParameter")
.SetCategory("DefaultValueMethod");

yield return new TestCaseData(evaluatorForMethodArgs()
, "paramsObj.SumOf( val2 : 3)"
, null)
.Returns(22)
.SetCategory("namedMethodParameter")
.SetCategory("DefaultValueMethod");

yield return new TestCaseData(evaluatorForMethodArgs()
, "paramsObj.SumOf(val1: 3)"
, null)
.Returns(23)
.SetCategory("namedMethodParameter")
.SetCategory("DefaultValueMethod");

#endregion

#region Issues/Bug resolution
Expand Down

0 comments on commit 5199ab1

Please sign in to comment.