diff --git a/tests/ConfigTests.cs b/tests/ConfigTests.cs index 5210889..a532857 100644 --- a/tests/ConfigTests.cs +++ b/tests/ConfigTests.cs @@ -109,6 +109,7 @@ public void ItSetsSIMD() { var config = new Config(); config.WithSIMD(false); + config.WithRelaxedSIMD(false, false); Action act = () => { @@ -123,10 +124,15 @@ public void ItSetsSIMD() public void ItSetsRelaxedSIMD() { var config = new Config(); - config.WithRelaxedSIMD(true, true); + config.WithRelaxedSIMD(false, false); - using var engine = new Engine(config); - using var module = Module.FromTextFile(engine, Path.Combine("Modules", "RelaxedSIMD.wat")); + Action act = () => + { + using var engine = new Engine(config); + using var module = Module.FromTextFile(engine, Path.Combine("Modules", "RelaxedSIMD.wat")); + }; + + act.Should().Throw(); } [Fact] @@ -134,6 +140,7 @@ public void ItSetsBulkMemory() { var config = new Config(); config.WithBulkMemory(false); + config.WithWasmThreads(false); config.WithReferenceTypes(false); Action act = () => diff --git a/tests/MultiMemoryTests.cs b/tests/MultiMemoryTests.cs index 33e669f..713b08a 100644 --- a/tests/MultiMemoryTests.cs +++ b/tests/MultiMemoryTests.cs @@ -1,5 +1,4 @@ using System; -using System.Linq; using FluentAssertions; using Xunit; @@ -8,9 +7,9 @@ namespace Wasmtime.Tests public class MultiMemoryTests { [Fact] - public void ItFailsWithoutMultiMemoryEnabled() + public void ItFailsWithMultiMemoryDisabled() { - using var engine = new Engine(); + using var engine = new Engine(new Config().WithMultiMemory(false)); Action action = () => { using var module = Module.FromText(engine, "test", @"(module (memory 0 1) (memory 0 1))"); @@ -23,9 +22,9 @@ public void ItFailsWithoutMultiMemoryEnabled() } [Fact] - public void ItSucceedsWithMultiMemoryEnabled() + public void ItSucceedsWithoutMultiMemoryDisabled() { - using var engine = new Engine(new Config().WithMultiMemory(true)); + using var engine = new Engine(); using var module = Module.FromText(engine, "test", @"(module (memory 0 1) (memory 0 1))"); } }