Created
August 8, 2017 01:50
-
-
Save carlosschults/a474698655450da6547dbfa6b9dbcb8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void GiveNegativeRaiseShouldHaveNoEffectOnSalary() | |
{ | |
// arrange | |
var raise = -10; | |
var salary = 100; | |
var sut = new Employee("Bob", "Tester", salary); | |
// act | |
sut.GiveRaise(raise); | |
var newSalary = sut.Salary; | |
// assert | |
Assert.AreEqual(salary, newSalary); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment