BudgetAnalyser.Wpf.UnitTest.MetaTest.NoDecreaseInTests C# (CSharp) Method

NoDecreaseInTests() private method

private NoDecreaseInTests ( ) : void
return void
        public void NoDecreaseInTests()
        {
            Assembly assembly = GetType().Assembly;
            int count = (from type in assembly.ExportedTypes
                let testClassAttrib = type.GetCustomAttribute<TestClassAttribute>()
                where testClassAttrib != null
                select type.GetMethods().Count(method => method.GetCustomAttribute<TestMethodAttribute>() != null)).Sum();
            Console.WriteLine(count);
            Assert.IsTrue(count >= MinimumTestCount);
        }
    }