Contains the localized ActionText descriptions and templates.
예제 #1
0
 public void ActionText_GetActionData_Absent()
 {
     Assert.IsTrue(string.IsNullOrEmpty(ActionText.GetActionData("ShouldNotExist")));
 }
예제 #2
0
 public void ActionText_GetActionText()
 {
     Assert.IsFalse(string.IsNullOrEmpty(ActionText.GetActionText("InstallFiles")));
 }
예제 #3
0
        /// <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));
        }