diff --git a/SuperSimpleViewEngine.Tests/SuperSimpleViewEngineTests.cs b/SuperSimpleViewEngine.Tests/SuperSimpleViewEngineTests.cs
index b291d7d..e0fc036 100644
--- a/SuperSimpleViewEngine.Tests/SuperSimpleViewEngineTests.cs
+++ b/SuperSimpleViewEngine.Tests/SuperSimpleViewEngineTests.cs
@@ -132,6 +132,31 @@ public void Should_use_multiple_current_statements_inside_each()
Assert.Equal(@"
", output);
}
+
+ [Fact]
+ public void Should_evaluate_current_conditional_inside_each()
+ {
+ const string input = @"@Each.Users;- @Current.Name:@If.IsGreekCitizen;Yay Greece!@EndIf;
@EndEach;
";
+ dynamic model = new ExpandoObject();
+ model.Users = new List