Skip to content

Unit Tests

Kbloowit edited this page Oct 5, 2020 · 2 revisions

Unit Tests

Naming Conventions

We use the Should-Method for naming the unit tests. See example and format below:

[TestFixture] public class BankAccountTests { [Test] public void Should_Increase_Balance_When_Deposit_Is_Made() { var bankAccount = new BankAccount(); bankAccount.Deposit(100); Assert.That(bankAccount.Balance, Is.EqualTo(100)); } } [10:17] _Should_When

Clone this wiki locally