public void DetectSSCEFileVersion() { string result = string.Empty; result = String.Format("Version : Sql Ce {0}", UndocumentedFunctions.GetCeVersion(GlobalInfo.SqlCE_TestFile)); Assert.AreNotEqual(String.Empty, result); }
private void butDetectFileVersion_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(txtDbPath.Text)) { "Please select db file first".Notify(); return; } string db = txtDbPath.Text; if (!File.Exists(db)) { "File not existed,please check it ".Show(); return; } string result = String.Format("Version : Sql Ce {0}", UndocumentedFunctions.GetCeVersion(db)); result.Notify(); }