Skip to content

Commit

Permalink
Fix Verifier Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-yin committed Oct 18, 2017
1 parent 388aeb9 commit d3b2428
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 d3b2428

Please sign in to comment.