Exemplo n.º 1
0
 public void CallerMemberNoHandlerTest(string val)
 {
     var original = val;
     var target = new TestNotifyClass();
     target.CallermemberVariable = val;
     Assert.AreEqual(target.CallermemberVariable , val );
 }
Exemplo n.º 2
0
 public void ExpressionNoHandlerTest(int val)
 {
     var original = val;
     var target = new TestNotifyClass();
     target.ExpressionVariable = val;
     Assert.AreEqual(target.ExpressionVariable, val);
 }
Exemplo n.º 3
0
 public void CallerMemberTest(string val)
 {
     var original = val;
     var target = new TestNotifyClass();
     target.PropertyChanged += (s, e) => val += "test";
     target.CallermemberVariable = val;
     Assert.AreEqual(target.CallermemberVariable+(original==null?null: "test"), val+null);
 }
Exemplo n.º 4
0
 public void ExpressionTest(int val)
 {
     var original = val;
     var target = new TestNotifyClass();
     target.PropertyChanged += (s,e) => val++;
     target.ExpressionVariable = val;
     Assert.AreEqual(target.ExpressionVariable+(original == 0 ?0:1),val);
 }