예제 #1
0
        public static void Main(string[] args)
        {
            SD.Debug.AutoFlush = true;
            SD.Debug.Listeners.Add(new SD.ConsoleTraceListener());

            PortableSupportImpl.Initialize();

            var program = new Program(args);

            try {
                var task = program.Run();
                task.Wait();
            } catch (Exception ex) {
                Debug("ERROR: {0}", ex);
            }
        }
예제 #2
0
        public TestRunner()
        {
            rng = RandomNumberGenerator.Create();

            MonoTlsProviderFactory.InstallProvider(new NewTlsProvider());

            PortableSupportImpl.Initialize();
            DependencyInjector.Register <ICryptoProvider> (this);
            DependencyInjector.Register <IConnectionProvider> (this);

            Settings = SettingsBag.CreateDefault();
            var assembly = typeof(NewTlsTestFeatures).Assembly;

            Logger = new TestLogger(new MyLogger(this));

            framework = TestFramework.GetLocalFramework(assembly);
        }