public void ActionText_GetActionData_Absent() { Assert.IsTrue(string.IsNullOrEmpty(ActionText.GetActionData("ShouldNotExist"))); }
public void ActionText_GetActionText() { Assert.IsFalse(string.IsNullOrEmpty(ActionText.GetActionText("InstallFiles"))); }
/// <summary> /// Gets the ActionText template for the given <paramref name="action"/>. /// </summary> /// <param name="action">The name of the action.</param> /// <param name="culture">The optional culture for which the ActionText template should be retrieved.</param> /// <returns>The ActionText template; otherwise, null if not found.</returns> internal static string GetActionData(string action, CultureInfo culture = null) { var resourceMan = ActionText.GetResourceManager(ref actionData, ResourceSet.ActionData); return(resourceMan.GetString(action, culture)); }