Example #1
0
 /// <summary>
 /// Sets the detection strategy back to the default for the runtime,
 /// environment variable detection for Windows, and the .fubumode file
 /// while running in Mono
 /// </summary>
 public static void Reset()
 {
     if (IsRunningOnMono())
     {
         Detector = new FubuModeFileDetector();
     }
     else
     {
         Detector = new EnvironmentVariableDetector();
     }
 }
Example #2
0
 public static void OverrideModeDetector(IModeDetector modeDetector)
 {
     current = modeDetector;
     cachedInDesignModeResult = null;
     cachedInUnitTestRunnerResult = null;
 }
Example #3
0
 /// <summary>
 /// Overrides the mode detector with one of your own provided ones.
 /// </summary>
 /// <param name="modeDetector">The mode detector to use.</param>
 public static void OverrideModeDetector(IModeDetector modeDetector)
 {
     Current = modeDetector;
     cachedInDesignModeResult     = null;
     cachedInUnitTestRunnerResult = null;
 }
Example #4
0
 /// <summary>
 /// Sets the detection strategy back to the default for the runtime,
 /// environment variable detection for Windows, and the .fubumode file
 /// while running in Mono
 /// </summary>
 public static void Reset()
 {
     if (IsRunningOnMono())
     {
         Detector = new FubuModeFileDetector();
     }
     else
     {
         Detector = new EnvironmentVariableDetector();
     }
 }
Example #5
0
 public static void OverrideModeDetector(IModeDetector modeDetector)
 {
     current = modeDetector;
 }
Example #6
0
 public Program(IModeDetector modeDetector)
 {
     _modeDetector = modeDetector;
 }
Example #7
0
 public static void OverrideModeDetector(IModeDetector modeDetector)
 {
     current = modeDetector;
 }