Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Created March 25, 2017 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsibinski/ea386a734c1021a4ba5430e0306ab732 to your computer and use it in GitHub Desktop.
Save dsibinski/ea386a734c1021a4ba5430e0306ab732 to your computer and use it in GitHub Desktop.
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
// This will load all tests within the current project
var nunit = new NUnit.Runner.App();
// If you want to add tests in another assembly
//nunit.AddTestAssembly(typeof(MyTests).Assembly);
// Do you want to automatically run tests when the app starts?
nunit.AutoRun = true;
LoadApplication(nunit);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment