Esempio n. 1
0
        public void ParametersTest()
        {
            TestingClass.Process(path + "/ParametersTests/bin");
            var successTests = TestingClass.TestInformation.Where(x => !x.Crashed).ToList();

            Assert.AreEqual(1, successTests.Count);
        }
Esempio n. 2
0
        public void ExceptionsTest()
        {
            TestingClass.Process(path + "/ExceptionTests");
            var successCount = TestingClass.TestInformation.Where(x => !x.Crashed).ToList().Count;

            Assert.AreEqual(4, successCount);
        }
Esempio n. 3
0
        public void SuccessfulTestingTest()
        {
            TestingClass.Process(path + "/SuccessfulTesting");
            var successCount = TestingClass.TestInformation.Where(x => x.Crashed == false).ToList().Count;

            Assert.AreEqual(4, successCount);
        }
Esempio n. 4
0
        public void IgnoreAttributeTest()
        {
            TestingClass.Process(path + "/IgnoreAttributeTest");
            var ignoredTests = TestingClass.TestInformation.Where(x => !x.Ignored).ToList();

            Assert.IsTrue(ignoredTests.Where(x => (x.IgnoreReason).CompareTo("TestCase") == 0) != null);
            Assert.IsTrue(ignoredTests.Where(x => (x.IgnoreReason).CompareTo("SecondTestCase") == 0) != null);
        }
Esempio n. 5
0
 public void EmptyTestsTest()
 {
     TestingClass.Process(path + "/EmptyTests");
     Assert.AreEqual(4, TestingClass.TestInformation.Count);
 }