コード例 #1
0
        public void CatalogListCreationTest2()
        {
            var catalogs = new string[] { "tempdb", "master" };
            var list     = new DbConnectionViewModel.ComboList(catalogs);
            var count    = list.Count();

            Assert.AreEqual(2, count);

            var isRefreshCount = list.Count(item => item.IsRefresh);

            Assert.AreEqual(0, isRefreshCount);
        }
コード例 #2
0
        public void CatalogListCreationTest()
        {
            var list  = new DbConnectionViewModel.ComboList();
            var count = list.Count();

            Assert.AreEqual(0, count);
        }