protected void HandleActionResult(ActionResult result) { if (result.Contains(ErrorCode.DefaultViewer_Not_Found)) { ShowMessage(Translation.ErrorCustomViewNotFoundDesc, Translation.ErrorCustomViewNotFoundTitle, MessageOptions.OK, MessageIcon.Error); } }
public void CanSerializerToString() { string xml = new ActionResult().Serialize(); Assert.IsNotNull(xml); Assert.IsTrue(xml.StartsWith("<?xml")); Assert.IsTrue(xml.Contains("ActionResult xmlns=\"http://tempuri.org/ActionResult.xsd\"")); }
public void EmptyFolderForSaveDialog_EnabledAutosave_IsValid() { _profile.SaveDialog.SetDirectory = true; _profile.SaveDialog.Folder = ""; _profile.AutoSave.Enabled = true; _result = ProfileChecker.ProfileCheck(_profile); Assert.IsFalse(_result.Contains(28100), "ProfileCheck should ignore empty folder for save dialog if Autosave is enabled."); }