From ff0844ca1fbc46c5b2f327007f12242ee48fc7ea Mon Sep 17 00:00:00 2001 From: Hoeksema <7414068+Hoeksema@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:20:54 +0100 Subject: [PATCH] Update ExceptionTests.cs --- source/Handlebars.Test/ExceptionTests.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/Handlebars.Test/ExceptionTests.cs b/source/Handlebars.Test/ExceptionTests.cs index 434dc999..0adea91a 100644 --- a/source/Handlebars.Test/ExceptionTests.cs +++ b/source/Handlebars.Test/ExceptionTests.cs @@ -57,5 +57,14 @@ public void TestLooseClosingBlockInIteratorExpressionException() Handlebars.Compile("{{#each enumerateMe}}test{{/if}}{{/each}}")(data); }); } + + [Fact] + public void TestNonClosingIgnoreBlockException() + { + Assert.Throws(() => + { + Handlebars.Compile("{{ [test }}")(new { }); + }); + } } }