diff --git a/tests/HydraScript.IntegrationTests/ErrorPrograms/VoidAssignmentTests.cs b/tests/HydraScript.IntegrationTests/ErrorPrograms/VoidAssignmentTests.cs index 481a864..43af6a1 100644 --- a/tests/HydraScript.IntegrationTests/ErrorPrograms/VoidAssignmentTests.cs +++ b/tests/HydraScript.IntegrationTests/ErrorPrograms/VoidAssignmentTests.cs @@ -20,5 +20,7 @@ function func(b: boolean) { services => services.SetupInMemoryScript(script)); var code = runner.Invoke(fixture.InMemoryScript); code.Should().Be(ExitCodes.HydraScriptError); + fixture.LogMessages.Should() + .Contain(x => x.Contains("Cannot assign void")); } } \ No newline at end of file