public void Id_Should_Be_Compsited_If_Parent_Is_Present() { var group = new Group("ActionGroup1"); var tab = new Tab("CommonTab"); var ribbon = new Ribbon("MyRibbon"); ribbon.With(() => tab .With(() => group .With(() => _sut))); Assert.AreEqual("MyRibbon.CommonTab.ActionGroup1.MyLabel", _sut.Id); }
public void Id_Should_Be_Compsited_If_Parent_Is_Present() { var menuSection = new MenuSection("MyMenuSection"); var menu = new Menu("MyMenu"); var comboBox = new ComboBox("MyComboBox"); var group = new Group("MyGroup"); var tab = new Tab("MyTab"); var ribbon = new Ribbon("MyRibbon"); ribbon.With(() => tab .With(() => group .With(() => comboBox.With(()=>menu.With(()=>menuSection.With(()=>_sut)))))); Assert.AreEqual("MyRibbon.MyTab.MyGroup.MyComboBox.MyMenu.MyMenuSection.MyInsertTable", _sut.Id); }