Ejemplo n.º 1
0
        internal void Initialize(Type type, XunitTest xunitTest)
        {
            if (_runWith != null)
            {
                return;
            }

            var runWith = type.GetCustomAttribute <RunWithAttribute>();

            if (runWith == null)
            {
                throw new InvalidOperationException("No run with class is found.");
            }

            _runWith = (IRunWith)Activator.CreateInstance(runWith.RunWithClass);
        }
Ejemplo n.º 2
0
 internal void Run(Type type, XunitTest xunitTest)
 {
     _runWith.Run(type, xunitTest);
 }