Esempio n. 1
0
		public void TestFindTableRegEx() {
			var db = new Database();
			db.Tables.Add(new Table("dbo", "cmicDeductible"));
			db.Tables.Add(new Table("dbo", "cmicZipCode"));
			db.Tables.Add(new Table("dbo", "cmicState"));
			db.Tables.Add(new Table("dbo", "Policy"));
			db.Tables.Add(new Table("dbo", "Location"));
			db.Tables.Add(new Table("dbo", "Rate"));

			Assert.AreEqual(3, db.FindTablesRegEx("^cmic").Count);
			Assert.AreEqual(1, db.FindTablesRegEx("Location").Count);
		}