Skip to content

Commit d3b2428

Browse files
committed
Fix Verifier Logic
1 parent 388aeb9 commit d3b2428

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RetailCoder.VBE/UnitTesting/Verifier.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void AtMost(int invocations, string message = "")
142142

143143
public void AtMostOnce(string message = "")
144144
{
145-
if (Asserted || InvocationCount > 1)
145+
if (Asserted || InvocationCount <= 1)
146146
{
147147
return;
148148
}
@@ -162,7 +162,7 @@ public void Between(int minimum, int maximum, string message = "")
162162

163163
public void Exactly(int invocations, string message = "")
164164
{
165-
if (Asserted || InvocationCount != invocations)
165+
if (Asserted || InvocationCount == invocations)
166166
{
167167
return;
168168
}
@@ -172,7 +172,7 @@ public void Exactly(int invocations, string message = "")
172172

173173
public void Never(string message = "")
174174
{
175-
if (Asserted || InvocationCount > 0)
175+
if (Asserted || InvocationCount == 0)
176176
{
177177
return;
178178
}

0 commit comments

Comments
 (0)