Ejemplo n.º 1
0
        public FormsRunner(Assembly executionAssembly, IReadOnlyCollection <Assembly> testAssemblies, IResultChannel resultChannel)
        {
            this.executionAssembly = executionAssembly;
            this.testAssemblies    = testAssemblies;
            this.resultChannel     = resultChannel;

            MainPage = GetMainPage();
        }
Ejemplo n.º 2
0
 protected XunitTestSuiteInstrumentation(IntPtr handle, JniHandleOwnership transfer, IResultPath resultPath, IResultChannel resultChannel, IInstrumentationProgress progress)
     : base(handle, transfer)
 {
     _resultsPath           = resultPath;
     _originalResultChannel = resultChannel;
     _progress               = progress;
     _cachedResultChannel    = new CachedResultChannel();
     _instrumentDeviceRunner = new InstrumentationDeviceRunner(new List <Assembly>(), null, _cachedResultChannel);
 }
 public InstrumentationDeviceRunner(
     IReadOnlyCollection <Assembly> testAssemblies,
     INavigation navigation,
     IResultChannel resultChannel)
     : base(testAssemblies, navigation, resultChannel)
 {
     _testAssemblies = testAssemblies;
     _navigation     = navigation;
     _resultChannel  = resultChannel;
 }
Ejemplo n.º 4
0
 public DeviceRunner(IReadOnlyCollection <Assembly> testAssemblies, INavigation navigation, IResultChannel resultChannel)
 {
     this.navigation    = navigation;
     TestAssemblies     = testAssemblies;
     this.resultChannel = resultChannel;
 }
Ejemplo n.º 5
0
 public static async Task SaveTo(this ICachedResultChannel cachedResultChannel, IResultChannel resultChannel, string message)
 {
     if (await resultChannel.OpenChannel(message))
     {
         try
         {
             foreach (var testResult in cachedResultChannel.TestResults)
             {
                 resultChannel.RecordResult(testResult);
             }
         }
         finally
         {
             await resultChannel.CloseChannel();
         }
     }
 }
Ejemplo n.º 6
0
 public DeviceRunner(IReadOnlyCollection<Assembly> testAssemblies, INavigation navigation, IResultChannel resultChannel)
 {
     this.navigation = navigation;
     TestAssemblies = testAssemblies;
     this.resultChannel = resultChannel;
 }
Ejemplo n.º 7
0
 protected XunitTestSuiteInstrumentation(IntPtr handle, JniHandleOwnership transfer, IResultPath resultPath, IResultChannel resultChannel)
     : this(handle, transfer, resultPath, resultChannel, new InstrumentationProgress())
 {
 }