Example #1
0
        /// <summary>
        /// Builds current testing assembly.
        /// </summary>
        /// <exception cref="System.NotSupportedException">Runtime can't be built</exception>
        public void Build()
        {
            if (IsBuilded)
            {
                throw new NotSupportedException("Runtime can't be built");
            }

            IsBuilded = true;

            foreach (var beforeAction in _beforeRuntimeBuildActions)
            {
                beforeAction();
            }

            Runtime.BuildAssembly();

            foreach (var afterAction in _afterRuntimeActions)
            {
                afterAction();
            }
        }