Example #1
0
        public void PytestShouldThrowNullResults()
        {
            var discoverer = new PytestTestDiscoverer();
            var testcases  = discoverer.ParseDiscoveryResults(null, projectHome: "dummypath");

            testcases.Any();
        }
Example #2
0
        public void PytestShouldHandleEmptyListResults()
        {
            var discoverer = new PytestTestDiscoverer();
            var results    = new List <PytestDiscoveryResults>();
            var testcases  = discoverer.ParseDiscoveryResults(results, projectHome: "dummypath");

            Assert.IsFalse(testcases.Any());
        }