public void FailsIfDoesntRaise()
        {
            var obj = new TypeThatDoesntRaise();
            var tester = new PropertyChangedTester<TypeThatDoesntRaise>(obj);

            try
            {
                tester.VerifyAllPublicProperties();
                Assert.Fail();
            }
            catch (VerifyException)
            {
            }
        }
 public void ProtectedProperty()
 {
     var tester = new PropertyChangedTester<TypeWithProtectedProperty>(new TypeWithProtectedProperty());
     tester.VerifyAllPublicProperties();
 }
Example #3
0
 public void NotifyPropertyChanged()
 {
     PropertyChangedTester<TweetViewModel> tester =
         new PropertyChangedTester<TweetViewModel>(vm);
     tester.VerifyAllPublicProperties();
 }
Example #4
0
 public void PropertyChanged()
 {
     PropertyChangedTester<LoginController> tester =
         new PropertyChangedTester<LoginController>(this.loginController);
     tester.VerifyAllPublicProperties();
 }