Beispiel #1
0
        public void NotifyPropertyChangedInvocatorAttributeTest()
        {
            var testObj = new NotifyPropertyChangedInvocatorAttribute();

            Assert.IsNull(testObj.ParameterName);

            testObj = new NotifyPropertyChangedInvocatorAttribute("ParameterName");
            Assert.AreEqual("ParameterName", testObj.ParameterName);
        }
        public void Constructor_WhenCalled_SetsParameterName()
        {
            //Arrange
            var paramName = Guid.NewGuid().ToString();

            //Act
            var classUnderTest = new NotifyPropertyChangedInvocatorAttribute(paramName.ToString());

            //Assert
            Assert.IsTrue(classUnderTest.ParameterName == paramName);
        }
 public void PropertiesTest()
 {
     var vm = new NotifyPropertyChangedInvocatorAttribute();
     TestsHelper.TestPublicDeclaredPropertiesGetSet(vm, true);
 }