Ejemplo n.º 1
0
        public void TestVSTS701330()
        {
            var grp = new VsTestNamespaceTestGroup(null, null, null, "Test");
            var uri = new Uri("/test/Test.cs");

            grp.AddTest(new MyVsTestUnitTest("Test", "Test", "TestCase1"));
            grp.AddTest(new MyVsTestUnitTest("Test", "Test.Test", "TestCase1"));
        }
Ejemplo n.º 2
0
        public void TestVSTS901156()
        {
            var parentNamespace = new VsTestNamespaceTestGroup(null, null, null, string.Empty);
            var test1           = new MyVsTestUnitTest("Namespace.childNamespace.TestClass.TestMethod1", "Namespace.childNamespace", "TestClass");
            var test2           = new MyVsTestUnitTest("Namespace.childNamespace.TestClass.TestMethod2", "Namespace.childNamespace", "TestClass");

            parentNamespace.AddTest(test1);
            parentNamespace.AddTest(test2);
            var currentNamespace = (VsTestNamespaceTestGroup)parentNamespace.Tests [0];
            var currentClass     = (VsTestTestClass)currentNamespace.Tests [0];

            Assert.AreEqual(currentNamespace.FixtureTypeNamespace, "Namespace.childNamespace");
            Assert.AreEqual(currentNamespace.Tests.Count, 1);
            Assert.AreEqual(currentClass.Tests.Count, 2);
        }