/// <summary> /// Translates the sub sequence, according to the tanslation dictionary provided /// </summary> /// <param name="translationDictionary"></param> public void Translate(Translations.TranslationDictionary translationDictionary) { foreach (TestCase testCase in TestCases) { testCase.Translate(translationDictionary); } }
/// <summary> /// Translates the current step, according to the translation dictionary /// </summary> /// <param name="translationDictionary"></param> public void Translate(Translations.TranslationDictionary translationDictionary) { foreach (Step step in Steps) { step.Translate(translationDictionary); } }
/// <summary> /// Constructor /// </summary> /// <param name="dictionary"></param> public Window(TranslationDictionary dictionary) { InitializeComponent(); translationTreeView.Root = dictionary; Text = dictionary.Dictionary.Name + " test translation view"; }
/// <summary> /// Translates the frame according to the translation dictionary provided /// </summary> /// <param name="translationDictionary"></param> public void Translate(Translations.TranslationDictionary translationDictionary) { foreach (SubSequence subSequence in SubSequences) { subSequence.Translate(translationDictionary); } }
public override TranslationDictionary createTranslationDictionary() { TranslationDictionary retVal = new Tests.Translations.TranslationDictionary(); _defaultValueSetter.SetDefaultValue(retVal); return(retVal); }
/// <summary> /// Constructor /// </summary> /// <param name="dictionary"></param> public Window(TranslationDictionary dictionary) { InitializeComponent(); translationTreeView.Root = dictionary; testBrowserStatusLabel.Text = translationTreeView.Root.TranslationsCount + " translation rule(s) loaded"; translationTreeView.AfterSelect += translationTreeView_AfterSelect; Text = dictionary.Dictionary.Name + " test translation view"; }
/// <summary> /// Translates the current step according to the translation dictionary /// Removes all preconditions, actions and expectations /// </summary> /// <param name="translationDictionary"></param> public void Translate(Translations.TranslationDictionary translationDictionary) { if (getTranslationRequired()) { SubSteps.Clear(); Translations.Translation translation = translationDictionary.findTranslation(getDescription()); if (translation != null) { translation.UpdateStep(this); setTranslated(true); } } }
public override TranslationDictionary createTranslationDictionary() { TranslationDictionary retVal = new Tests.Translations.TranslationDictionary(); _defaultValueSetter.SetDefaultValue(retVal); return retVal; }