Skip to content

Commit d9fd293

Browse files
Update tdd-example.md (#12)
Fix a mistake: having two push tests requires increment instead of hard-coded value
1 parent 0636bb9 commit d9fd293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/docs/tdd-example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ StackTests.PushThree_CountIsThree [FAIL]
186186
We know that hard-coding `Count` to one isn't going to be be good enough any more, so let's update it:
187187

188188
```csharp
189-
public void Push(int element) => Count = 3;
189+
public void Push(int element) => Count++;
190190
```
191191

192192
Let's move on and see what's next.

0 commit comments

Comments
 (0)