Skip to content

Commit

Permalink
Update testing-guidelines.md (stratisproject#1282)
Browse files Browse the repository at this point in the history
Typo
  • Loading branch information
ferdeen authored and bokobza committed Apr 14, 2018
1 parent 6e68dbf commit 1da0915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/testing-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ General testing rules:
* Call method under test
* NewLine
* Assert Result
7. DRY (don't repeat yourself). If you do the same initialization in each test mode that to the test class constructor. That code is then called before every test is called.
7. DRY (don't repeat yourself). If you do the same initialization in each test move that to the test class constructor. This code is then called before every test.
8. Test getters and setters only if they contain complex logic that you want to prove with a test.
9. Do not test for null reference exceptions on called methods. Add a Guard.NotNull instead.
These are generally coding mistakes that can be taken out when code reviewing and testing this does not add much value.
Expand Down Expand Up @@ -99,4 +99,4 @@ General testing rules:
}
}
}
```
```

0 comments on commit 1da0915

Please sign in to comment.