-
Notifications
You must be signed in to change notification settings - Fork 0
Unit Tests
Kbloowit edited this page Oct 5, 2020
·
2 revisions
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