public void TestRaisePropertyChangedNoMagicStringNonPropertyExpressionWithBroadcast() { var instance = new TestViewModelNoMagicString(); instance.PropertyChanged += InstancePropertyChanged; try { instance.RaisePropertyChangedPublic(() => DummyStringMethod(), "12", "34", true); Assert.Fail("ArgumentException was expected"); } catch (ArgumentException) { } }
public void TestRaisePropertyChangedNoMagicStringNullExpression() { var instance = new TestViewModelNoMagicString(); instance.PropertyChanged += InstancePropertyChanged; try { instance.RaisePropertyChangedPublic<string>(null); Assert.Fail("ArgumentNullException was expected"); } catch (ArgumentNullException) { } }