Ejemplo n.º 1
0
        public void WorkerConstructorTests_VeryfyTestCaseAttributes()
        {
            var obj = new WorkerConstructorTests();

            var result = obj.GetType()
                         .GetMethods()
                         .Select(x => x.GetCustomAttributes(false)
                                 .Where(z => z.GetType() == typeof(TestCaseAttribute))
                                 .Count())
                         .Sum();

            Assert.AreEqual(0, result);
        }
Ejemplo n.º 2
0
        public void WorkerConstructorTests_VerifyNumberOfTests()
        {
            var methodsFromFramework = 4;
            var expectedMethods      = 17;
            var totalExpectedMethods = methodsFromFramework + expectedMethods;

            var obj = new WorkerConstructorTests();

            var result = obj.GetType()
                         .GetMethods()
                         .Count();

            Assert.AreEqual(totalExpectedMethods, result);
        }