forked from elsa-workflows/elsa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If eager join is set, clear scheduled activities on join (elsa-workfl…
- Loading branch information
1 parent
1f9742b
commit 520e3d3
Showing
4 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Xunit; | ||
|
||
namespace Elsa.Models; | ||
|
||
public class SimpleStackTests | ||
{ | ||
[Fact(DisplayName = "Testing simple stack push, pop, peek, and remove operations")] | ||
public void PushPopAndRemove() | ||
{ | ||
var sut = new SimpleStack<string>(); | ||
|
||
sut.Push("1"); | ||
sut.Push("2"); | ||
sut.Push("3"); | ||
sut.Push("4"); | ||
|
||
Assert.Equal("4", sut.Peek()); | ||
Assert.Equal("4", sut.Peek()); | ||
Assert.Equal("4", sut.Pop()); | ||
Assert.Equal("3", sut.Peek()); | ||
|
||
sut.Remove("2"); | ||
|
||
Assert.Equal("3", sut.Pop()); | ||
Assert.Equal("1", sut.Pop()); | ||
} | ||
} |