예제 #1
0
 public void LoadAndRunSystemRunners()
 {
     var updater = new AssemblyUpdater(MakeSureWeCanUseTypeInDomain, delegate(Type type)
     {
         if (type == typeof(Time))
             return Activator.CreateInstance(type, Activator.CreateInstance<StopwatchTime>());
         return Activator.CreateInstance(type);
     });
     // This runs for 10 seconds, go to ConsoleRunner and change it while this is running!
     for (float time = 0; time < 10.0f; time += 0.1f)
     {
         updater.Run();
         Thread.Sleep(100);
     }
 }