Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save atzimler/ea9b693c79775154e9e7af56734ded2c to your computer and use it in GitHub Desktop.

Select an option

Save atzimler/ea9b693c79775154e9e7af56734ded2c to your computer and use it in GitHub Desktop.
[TestFixture]
public class LetsCheckTheEventHandlers
{
[Test]
public void ChainedEventHandlers()
{
var m = new MultiplyByTwo();
var s = new CreateResultStars(m);
Assert.AreEqual(string.Empty, s.Stars);
m.Number = 3;
Assert.AreEqual("******", s.Stars);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment