Skip to content

Instantly share code, notes, and snippets.

View liquidvapour's full-sized avatar
🎯
Focusing

Ra-el Peters liquidvapour

🎯
Focusing
  • GajaTech Ltd
  • UK
View GitHub Profile
@liquidvapour
liquidvapour / gist:3434951
Created August 23, 2012 09:57
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);
}