public void ClientJobsTests_VeryfyTestCaseAttributes() { var obj = new ClientJobsTests(); var result = obj.GetType() .GetMethods() .Select(x => x.GetCustomAttributes(false) .Where(z => z.GetType() == typeof(TestCaseAttribute)) .Count()) .Sum(); Assert.AreEqual(0, result); }
public void ClientJobsTests_VerifyNumberOfTests() { var methodsFromFramework = 4; var expectedMethods = 2; var totalExpectedMethods = methodsFromFramework + expectedMethods; var obj = new ClientJobsTests(); var result = obj.GetType() .GetMethods() .Count(); Assert.AreEqual(totalExpectedMethods, result); }