Skip to content

Commit

Permalink
patch testing
Browse files Browse the repository at this point in the history
patching the unit testing to ensure all testing passes
  • Loading branch information
roger-castaldo committed Sep 20, 2023
1 parent b70e21c commit c524520
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
Binary file modified BPMNEngine/.vs/BPMNEngine/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified BPMNEngine/.vs/BPMNEngine/v17/.futdcache.v2
Binary file not shown.
Binary file modified BPMNEngine/.vs/BPMNEngine/v17/.suo
Binary file not shown.
Binary file modified BPMNEngine/.vs/BPMNEngine/v17/TestStore/0/testlog.manifest
Binary file not shown.
Binary file modified BPMNEngine/.vs/ProjectEvaluation/bpmnengine.metadata.v7.bin
Binary file not shown.
Binary file modified BPMNEngine/.vs/ProjectEvaluation/bpmnengine.projects.v7.bin
Binary file not shown.
8 changes: 4 additions & 4 deletions UnitTest/StateStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ public class StateStorage
};

[ClassInitialize]
public static void Initialize(TestContext testContext)
public static void Initialize()
{
_singleTaskProcess = new BusinessProcess(Utility.LoadResourceDocument("UserTasks/single_user_task.bpmn"),
tasks: new() {
BeginUserTask=(IUserTask task) =>
{
Task.Delay(TimeSpan.FromMilliseconds(1500)).Wait();
Task.Delay(TimeSpan.FromSeconds(2)).Wait();
task.Debug(_TEST_LOG_LINE);
task.Variables[_TEST_VARIABLE_NAME] = _TEST_VARIABLE_VALUE;
task.Variables[_TEST_FILE_VARIABLE]=_TEST_FILES;
Expand Down Expand Up @@ -93,7 +93,7 @@ private void TestCurrentState(IState currentState)
public void TestXMLStorage()
{
var inst = _singleTaskProcess.BeginProcess(null, stateLogLevel: Microsoft.Extensions.Logging.LogLevel.Debug);
Task.Delay(TimeSpan.FromMilliseconds(500)).Wait();
Assert.IsTrue(inst.WaitForUserTask("UserTask_15dj2au", out _));
Assert.IsTrue(inst.CurrentState.ActiveElements.Any());
Assert.IsTrue(inst.WaitForCompletion());

Expand All @@ -112,7 +112,7 @@ public void TestXMLStorage()
public void TestJsonStorage()
{
var inst = _singleTaskProcess.BeginProcess(null, stateLogLevel: Microsoft.Extensions.Logging.LogLevel.Debug);
Task.Delay(TimeSpan.FromMilliseconds(500)).Wait();
Assert.IsTrue(inst.WaitForUserTask("UserTask_15dj2au", out _));
Assert.IsTrue(inst.CurrentState.ActiveElements.Any());
Assert.IsTrue(inst.WaitForCompletion());

Expand Down

0 comments on commit c524520

Please sign in to comment.