Exemple #1
0
        public void JobPriceTests_VeryfyTestCaseAttributes()
        {
            var obj = new JobPriceTests();

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

            Assert.AreEqual(2, result);
        }
Exemple #2
0
        public void JobPriceTests_VerifyNumberOfTests()
        {
            var methodsFromFramework = 4;
            var expectedMethods      = 5;
            var totalExpectedMethods = methodsFromFramework + expectedMethods;

            var obj = new JobPriceTests();

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

            Assert.AreEqual(totalExpectedMethods, result);
        }