Esempio n. 1
0
 public void Dep_prop_identification_performance()
 {
     var fw = new UserControl();
     var l = fw.GetDependencyProperties().ToList();
     new Action(()=>
     {
       for (int i = 0; i < 500; i++)
         l = fw.GetDependencyProperties().ToList();
     }).ExecutionTime().ShouldNotExceed(TimeSpan.FromMilliseconds(180));
     Debug.WriteLine(l);
 }