// Use this for initialization
        void Start()
        {
            _container = new WindsorContainer().Install(new ContainerInstaller());

            _tester = _container.Resolve <ITester>();

            _tester.Test();
        }
Exemple #2
0
        private static IKernel kernel = new StandardKernel(new MyModule());//注入工具
        static void Main(string[] args)
        {
            //获取接口对应的对象
            ITester tester = kernel.Get <ITester>();

            tester.Test();
            Console.WriteLine("continues..");
            Console.Read();
        }
Exemple #3
0
 public void OnGUI()
 {
     if (GUILayout.Button("Run Thread Test"))
     {
         // Once again, no thread weaving done with the UI,
         // no hidden coroutines, just 'do this please
         // NOTE: Same code as the player runtime, for editor runtime!
         _tester.Test();
     }
 }
Exemple #4
0
        public int Launch(IApplicationContext context)
        {
            foreach (IExtension extension in _extensionRegistry.GetExtensions("jingxian.core.testSupport.autoTests"))
            {
                if (extension.Point == Constants.Points.XmlSchemas)
                {
                    continue;
                }

                Console.WriteLine("创建对象 - {0}", extension.Id);
                ITester tester = extension.Build <ITester>();
                tester.Test();
            }

            return(0);
        }
Exemple #5
0
        private void RunTest()
        {
            if (TestSet == null)
            {
                throw new InvalidOperationException("Test set was not created!");
            }

            TestSet.Reset();
            var testWatch = new Stopwatch();

            testWatch.Start();
            var result = _tester.Test(Network.Clone(), TestSet);

            testWatch.Stop();

            if (Options.ReportMesages)
            {
                Options.ProgressWriter?.Message($"=========\n\tTested in:\t{testWatch.Elapsed.TotalSeconds:0.0000}s\n{result.GetReport()}\n=========\n");
            }
        }
Exemple #6
0
 public void Run()
 {
     try
     {
         logger.LogInformation($"Started {nameof(App)}");
         runner.RunDasBlog();
         Thread.Sleep(1000);
         tester.Test();
         publisher.Publish(tester.Results.Results);
     }
     finally
     {
         try
         {
             runner?.Kill();
             tester?.Dispose();
         }
         catch (System.Exception ex)
         {
             logger.LogDebug($"failed to kill runner or dispose tester {ex.Message}");
         }
     }
 }
 public override bool Test <T>(ITester <T> tester, T obj)
 {
     return(tester.Test(obj, Key, _testEntry));
 }
 public void AddMatrix_ValueType(ITester tester)
 {
     tester.Test();
 }
 public void AddMatrix_RefType(ITester tester)
 {
     tester.Test();
 }
Exemple #10
0
 public void Postorder_CustomComparer(ITester tester)
 {
     tester.Test();
 }
Exemple #11
0
 public void Postorder_DefaultComparer(ITester tester)
 {
     tester.Test();
 }