Exemplo n.º 1
0
 public void SetUp()
 {
     this.log = new List<string>();
     this.converter = new DebugConverter();
     this.converter.Logger = (msg, name) => log.Add(msg);
 }
Exemplo n.º 2
0
 static DebugConverter()
 {
     // Have to set this from within a static constructor, as it's run after the field initializers
     // Otherwise it gets called before the DependencyProperties have been created, and that causes the (normal) constructor to fall over
     Instance = new DebugConverter();
 }
Exemplo n.º 3
0
 static DebugConverter()
 {
     // Have to set this from within a static constructor, as it's run after the field initializers
     // Otherwise it gets called before the DependencyProperties have been created, and that causes the (normal) constructor to fall over
     Instance = new DebugConverter();
 }