Exception throwing when required, and fixes for unit tests

This commit is contained in:
2018-11-26 17:23:56 +01:00
parent 74da87d936
commit b7d01b02f1
14 changed files with 73 additions and 29 deletions

View File

@@ -15,7 +15,7 @@ namespace UpsilonTests.StandardLibraryTests
public void AssertTest()
{
Executor.EvaluateScript("assert(true)", Options);
Assert.Throws<Exception>(() => Executor.EvaluateScript("assert(true)", Options));
Assert.Throws<Exception>(() => Executor.EvaluateScript("assert(false)", Options));
}
[Fact]