BrickPile.Core.UnitTestDetector.UnitTestDetector C# (CSharp) Метод

UnitTestDetector() статический приватный Метод

static private UnitTestDetector ( ) : System
Результат System
        static UnitTestDetector()
        {
            foreach (Assembly assem in AppDomain.CurrentDomain.GetAssemblies())
            {
                // Can't do something like this as it will load the nUnit assembly
                // if (assem == typeof(NUnit.Framework.Assert))

                if (assem.FullName.ToLowerInvariant().StartsWith("nunit.framework"))
                {
                    _runningFromNUnit = true;
                    break;
                }
            }
        }
UnitTestDetector