using JSTest; using JSTest.ScriptElements; using JSTest.ScriptLibraries; using NUnit.Framework; namespace JSLib.Test { [TestFixture] public class ProcessorTests { [Datapoints] public readonly TestCase[] LibraryTests = TestCase.LoadFrom(@"..\..\Test\processor-suite.js"); [Theory] public void Test(TestCase testCase) { var script = new TestScript { IncludeDefaultBreakpoint = false }; // Append required JavaScript libraries. script.AppendBlock(new JsAssertLibrary()); // Append required JavaScript Files. script.AppendFile(@"..\..\Scripts\require.js"); script.AppendFile(@"..\..\Scripts\processor.js"); script.AppendFile(testCase.TestFile); // Run 'Test'. script.RunTest(testCase); } } }