Skip to content

Instantly share code, notes, and snippets.

@liquidvapour
Created August 23, 2012 09:57
Show Gist options
  • Save liquidvapour/3434951 to your computer and use it in GitHub Desktop.
Save liquidvapour/3434951 to your computer and use it in GitHub Desktop.
Test PropertyChanged event
[TestMethod]
public void when_can_continue_property_changed_should_raise_property_changed_event()
{
var propertyChanedFiredForCanContinue = false;
_sut.PropertyChanged += (s, a) => { if (a.PropertyName == "CanContinue") propertyChanedFiredForCanContinue = true; };
_sut.CanContinue = !_sut.CanContinue;
Assert.IsTrue(propertyChanedFiredForCanContinue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment