Skip to content

Commit eb3f626

Browse files
authored
Session10 (#51)
* Content for session 10
1 parent 6ea92cd commit eb3f626

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

sessions/0110-UnitTests/Logic/CouponEvaluator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using System;
2+
13
namespace Logic
24
{
35
public class CouponEvaluator {

sessions/0110-UnitTests/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,14 @@ dotnet watch test
288288

289289
## Our first Logic test
290290

291-
Let's first inspect the
291+
Let's first inspect the Order object
292292

293293
### Fixing the code
294294

295295
## Making Tests Better
296296

297+
There's a great article in the .NET docs about [unit testing best practices](https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-best-practices) that we will summarize here as part of working on this test project.
298+
297299
- Fast
298300
- Isolated
299301
- Repeatable
@@ -315,9 +317,3 @@ Act
315317
"Given... When... Then" pattern
316318

317319
### Setup and Teardown
318-
319-
### Avoid Multiple Asserts
320-
321-
### Remove static dependencies
322-
323-
"Two for Tuesday" problem

0 commit comments

Comments
 (0)