Skip to content

Instantly share code, notes, and snippets.

@carlosschults
Created August 8, 2017 01:50
Show Gist options
  • Save carlosschults/a474698655450da6547dbfa6b9dbcb8c to your computer and use it in GitHub Desktop.
Save carlosschults/a474698655450da6547dbfa6b9dbcb8c to your computer and use it in GitHub Desktop.
[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