public void Apply_EditorWithDifferentTools_SetsCorrectPopupContentTitleText() { // Arrange var toolbar = _editor.Toolbars.Toolbars[0]; var toolSpellChecker = new ToolSpellChecker(); toolbar.Tools.Add(toolSpellChecker); var toolFind = new ToolFind(); toolbar.Tools.Add(toolFind); var toolReplace = new ToolReplace(); toolbar.Tools.Add(toolReplace); var toolImage = new ToolImage(); toolbar.Tools.Add(toolImage); var toolLink = new ToolLink(); toolbar.Tools.Add(toolLink); var toolFlash = new ToolFlash(); toolbar.Tools.Add(toolFlash); // Arrange & Act LocalizationHelper.Apply(_localizationSettings, _editor); // Assert _editor.ShouldSatisfyAllConditions( () => _editor.ShouldNotBeNull(), () => toolSpellChecker.PopupContents.TitleText.ShouldBe(LocalizedTextId.TOOL_SPELL_CHECKER_TITLE), () => toolFind.PopupContents.TitleText.ShouldBe(LocalizedTextId.TOOL_FIND_TITLE), () => toolReplace.PopupContents.TitleText.ShouldBe(LocalizedTextId.TOOL_REPLACE_TITLE), () => toolImage.PopupContents.TitleText.ShouldBe(LocalizedTextId.TOOL_IMAGE_TITLE), () => toolLink.PopupContents.TitleText.ShouldBe(LocalizedTextId.TOOL_LINK_TITLE), () => toolFlash.PopupContents.TitleText.ShouldBe(LocalizedTextId.TOOL_FLASH_TITLE)); }
public void SetUp() { _context = ShimsContext.Create(); _toolFlash = new ToolFlash(); _privateObject = new MSTest::PrivateObject(_toolFlash); }