private void Check (string msg, OleDbPermission perm, bool blank, bool unrestricted, int count) { Assert.AreEqual (blank, perm.AllowBlankPassword, msg + ".AllowBlankPassword"); Assert.AreEqual (unrestricted, perm.IsUnrestricted (), msg + ".IsUnrestricted"); if (count == 0) Assert.IsNull (perm.ToXml ().Children, msg + ".Count != 0"); else Assert.AreEqual (count, perm.ToXml ().Children.Count, msg + ".Count"); Assert.AreEqual (String.Empty, perm.Provider, "Provider"); }