Created
June 14, 2021 07:07
-
-
Save babaktaremi/deafd22ffda5388fbdcf2b637768c7db 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 TestEvents() | |
{ | |
var mock = new Mock<IAnimal>(); | |
var doctor = new Doctor(mock.Object); | |
mock.Raise(animal => animal.FallsIll+=null, | |
new EventArgs()); | |
Assert.That(doctor.TimesCured,Is.EqualTo(1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment