コード例 #1
0
        public void finds_all_ssdt_projects_in_a_solution(string dteVersion)
        {
            try
            {
                Init(dteVersion);

                var projects = new Enumerators.ProjectEnumerator().Get("{00d1a9c2-b5f0-4af3-8072-f6c62b433612}");

                try
                {
                    _dte.Quit();
                }
                catch (Exception ex)
                {
                    Console.WriteLine("Error cleaning up: {0}", ex);
                }

                MessageFilter.Revoke();

                Assert.AreEqual(2, projects.Count);
                Assert.IsNotNull(projects.FirstOrDefault(p => p.FileName == "Nested.sqlproj"));
                Assert.IsNotNull(projects.FirstOrDefault(p => p.FileName == "Nested2.sqlproj"));
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Assert.Fail();
            }
        }
コード例 #2
0
        public void finds_all_ssdt_projects_in_a_solution(string dteVersion)
        {
            try
            {
                Init(dteVersion);

                var projects = new Enumerators.ProjectEnumerator().Get("{00d1a9c2-b5f0-4af3-8072-f6c62b433612}");

                try
                {
                    _dte.Quit();
                }
                catch (Exception ex)
                {
                    Console.WriteLine("Error cleaning up: {0}", ex);
                }

                MessageFilter.Revoke();

                Assert.AreEqual(2, projects.Count);
                Assert.IsNotNull(projects.FirstOrDefault(p=>p.FileName == "Nested.sqlproj"));
                Assert.IsNotNull(projects.FirstOrDefault(p => p.FileName == "Nested2.sqlproj"));

            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Assert.Fail();
            }
        }