public void LoadErrorFree(string resourceName) { string processJson = ReadJsonResource(resourceName); var workspace = new IntegerWorkspace(); var success = workspace.LoadUserProcesses(processJson, true, out List <string> errors); Assert.Null(errors); Assert.True(success); }
public async Task RunProcess(string resourceName, int inValue, int expectedResult) { string processJson = ProcessLoadingTests.ReadJsonResource(resourceName); var workspace = new IntegerWorkspace(); var success = workspace.LoadUserProcesses(processJson, false, out _); Assert.True(success); var result = await workspace.ModifyNumber(inValue); Assert.Equal(expectedResult, result); }