コード例 #1
0
        /// <summary>
        /// Creates the testing assembly.
        /// </summary>
        /// <returns>TestingAssembly.</returns>
        internal static TestingAssembly CreateTestingAssembly()
        {
            var settings = new MachineSettings(false);

            InitializeRuntime(settings.Runtime);

            var assembly = new TestingAssembly(settings);

            return(assembly);
        }
コード例 #2
0
        /// <summary>
        /// Run test that is defined by given assembly.
        /// </summary>
        /// <param name="assembly">Assembly where test.</param>
        public static void DisplayTestResult(TestingAssembly assembly)
        {
            var executor = new AnalyzingResearchExecutor(assembly);

            //execute test and show result on console and editor interface
            executor.Execute();
            executor.TryShowDrawings();

            //Wait so user can read an output
            Console.ReadKey();
            Environment.Exit(0);
        }
コード例 #3
0
 /// <summary>
 /// Initializes new instance of executor of research test cases.
 /// </summary>
 /// <param name="assembly">Assembly</param>
 internal AnalyzingResearchExecutor(TestingAssembly assembly)
 {
     _assembly = assembly;
     setDefaultCompositionPoint();
 }