static int Main(string [] args) { var assemblyName = Path.GetFileName(typeof(MainClass).Assembly.Location); var list = new List <string> (args.Where(arg => !arg.StartsWith("-psn_", System.StringComparison.Ordinal) && !arg.EndsWith(assemblyName, System.StringComparison.Ordinal))); list.Add("-domain=None"); list.Add("-noshadow"); list.Add("-nothread"); if (!list.Contains(typeof(MainClass).Assembly.Location)) { list.Add(typeof(MainClass).Assembly.Location); } bool skipImageVerification = list.Remove("-no-image-verify"); var res = NUnit.ConsoleRunner.Runner.Main(list.ToArray()); if (!skipImageVerification) { ReferenceImageManager.ShowImageVerifier(); } return(res); }
static void Main(string [] args) { Xwt.Application.Initialize(Xwt.ToolkitType.Cocoa); ReferenceImageManager.Init("MacTestRunner"); var list = new List <string> (args); list.Add("-domain=None"); list.Add("-noshadow"); list.Add("-nothread"); NUnit.ConsoleRunner.Runner.Main(list.ToArray()); ReferenceImageManager.ShowImageVerifier(); }
static void Main(string[] args) { var list = new List <string> (args); list.Add("-domain=None"); list.Add("-noshadow"); list.Add("-nothread"); if (!list.Contains(typeof(Program).Assembly.Location)) { list.Add(typeof(Program).Assembly.Location); } NUnit.ConsoleRunner.Runner.Main(list.ToArray()); ReferenceImageManager.ShowImageVerifier(); }
static void Main(string [] args) { //FIXME: remove this once mmp summorts xammac ObjCRuntime.Dlfcn.dlopen("/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac.dylib", 0); var list = new List <string> (args); list.Add("-domain=None"); list.Add("-noshadow"); list.Add("-nothread"); // if (!list.Contains (typeof (MainClass).Assembly.Location)) // list.Add (typeof (MainClass).Assembly.Location); NUnit.ConsoleRunner.Runner.Main(list.ToArray()); ReferenceImageManager.ShowImageVerifier(); }
static void Main(string[] args) { Xwt.Application.Initialize(Xwt.ToolkitType.Wpf); ReferenceImageManager.Init("GtkTestRunner"); var list = new List <string> (args); list.Add("-domain=None"); list.Add("-noshadow"); list.Add("-nothread"); list.Add("-xml=result.xml"); // list.Add ("-fixture=Xwt.WindowTests"); // list.Add ("-run=Xwt.WindowTests.DefaultSize"); list.Add(typeof(Program).Assembly.Location); NUnit.ConsoleRunner.Runner.Main(list.ToArray()); ReferenceImageManager.ShowImageVerifier(); }
public static void Main(string[] args) { Xwt.Application.Initialize(Xwt.ToolkitType.Gtk); ReferenceImageManager.Init("GtkTestRunner"); var list = new List <string> (args); list.Add("-domain=None"); list.Add("-noshadow"); list.Add("-nothread"); if (!list.Contains(typeof(MainClass).Assembly.Location)) { list.Add(typeof(MainClass).Assembly.Location); } NUnit.ConsoleRunner.Runner.Main(list.ToArray()); ReferenceImageManager.ShowImageVerifier(); }
static int Main(string[] args) { var list = new List <string> (args); list.Add("-domain=None"); list.Add("-noshadow"); list.Add("-nothread"); if (!list.Contains(typeof(Program).Assembly.Location)) { list.Add(typeof(Program).Assembly.Location); } bool skipImageVerification = list.Remove("-no-image-verify"); var res = NUnit.ConsoleRunner.Runner.Main(list.ToArray()); if (!skipImageVerification) { ReferenceImageManager.ShowImageVerifier(); } return(res); }