/// <summary> /// Any setup code should be going in here.. /// </summary> public ManageAzureTests() { var setupFile = "c:\\temp\\Azure_Publish_Settings\\AzureManagementTestConfig.xml"; var costDataFile = "c:\\temp\\Azure_Publish_Settings\\AzureCosts.xml"; testData = ReadTestData(setupFile); var settingsPath = testData.PublishSettingsFile; TestBootstrap.Register(settingsPath, costDataFile); sutD = TinyIoCContainer.Current.Resolve <AzureManagementDownloader>(); sutR = TinyIoCContainer.Current.Resolve <AzureManagementReporter>(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); // register every tests included in the main application/assembly var nunit = new NUnit.Runner.App(); // Do you want to automatically run tests when the app starts? nunit.Options = new TestOptions { AutoRun = true, CreateXmlResultFile = true }; var storageFilepath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); TestBootstrap.Begin((datastoreName) => new EFCoreSampleRepositoryContext(Guard.NullOrWhitespace(storageFilepath), datastoreName)); // Load the Xamarin.Forms based application LoadApplication(nunit); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); Xamarin.Calabash.Start(); // register every tests included in the main application/assembly var nunit = new NUnit.Runner.App(); // Do you want to automatically run tests when the app starts? nunit.Options = new TestOptions { AutoRun = false, CreateXmlResultFile = true }; var storageFilepath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "..", "Library"); TestBootstrap.Begin((datastoreName) => new EFCoreSampleRepositoryContext(Guard.NullOrWhitespace(storageFilepath), datastoreName)); // Load the Xamarin.Forms based application LoadApplication(nunit); return(base.FinishedLaunching(app, options)); }
public void TestCombo(TestBootstrap runner) { runner.TestCombo(); }
public void TestSuffix(TestBootstrap runner) { runner.TestSuffix(); }
public void TestTranspile(TestBootstrap runner) { runner.TestTranspile(); }