public MethodViewModel(Method method)
     : this(method.Id,
     MethodView.MethodColor.ToBrush(),
     MethodView.MethodBorderColor.ToBrush(),
     3,
     method.FirstLineNumber * PixelPerLine,
     method.LineExtend, method.Name)
 {
 }
Beispiel #2
0
 public void SetUp()
 {
     _enterCount = new UintValue(1);
     _wallClockDurationHns = new Uint64Value(2);
     _activeTime = new DoubleValue(3);
     Mock<IEnumerable<Method>> mockCallingMethods = new Mock<IEnumerable<Method>>(MockBehavior.Strict);
     Mock<IEnumerable<Method>> mockCalledMethods = new Mock<IEnumerable<Method>>(MockBehavior.Strict);
     _method = new TracingMethod(1,"stub", 20, 50, "MethodFull", @"C:\code\source.cs",_enterCount,_wallClockDurationHns,_activeTime );//, mockCallingMethods.Object,
                          //mockCalledMethods.Object);
 }