Skip to content

Commit

Permalink
Merge pull request #3480 from qin-yin/Fix-Verifier-Logic
Browse files Browse the repository at this point in the history
Fix Verifier Logic
  • Loading branch information
Hosch250 committed Oct 18, 2017
2 parents 388aeb9 + d3b2428 commit 893470f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RetailCoder.VBE/UnitTesting/Verifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void AtMost(int invocations, string message = "")

public void AtMostOnce(string message = "")
{
if (Asserted || InvocationCount > 1)
if (Asserted || InvocationCount <= 1)
{
return;
}
Expand All @@ -162,7 +162,7 @@ public void Between(int minimum, int maximum, string message = "")

public void Exactly(int invocations, string message = "")
{
if (Asserted || InvocationCount != invocations)
if (Asserted || InvocationCount == invocations)
{
return;
}
Expand All @@ -172,7 +172,7 @@ public void Exactly(int invocations, string message = "")

public void Never(string message = "")
{
if (Asserted || InvocationCount > 0)
if (Asserted || InvocationCount == 0)
{
return;
}
Expand Down

0 comments on commit 893470f

Please sign in to comment.