-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
MoveToRibbonTab
to move to Modify
tab.
- Loading branch information
Showing
10 changed files
with
123 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using NUnit.Framework; | ||
using System.Linq; | ||
|
||
namespace ricaun.Revit.UI.Tests.Panels | ||
{ | ||
public class RevitPanelMoveTests : BaseCreatePanelTests | ||
{ | ||
private const string TabIdAddIns = "Add-Ins"; | ||
private const string TabIdModify = "Modify"; | ||
|
||
[Test] | ||
public void CreatePanel_ShouldBe_AddIns() | ||
{ | ||
Assert.AreEqual(TabIdAddIns, ribbonPanel.GetRibbonTab().Id); | ||
} | ||
|
||
[Test] | ||
public void MovePanelTo_Modify() | ||
{ | ||
ribbonPanel.MoveToRibbonTab(); | ||
Assert.AreEqual(TabIdModify, ribbonPanel.GetRibbonTab().Id); | ||
} | ||
|
||
[Test] | ||
public void MovePanelWithId_Modify() | ||
{ | ||
ribbonPanel.MoveToRibbonTab(TabIdModify); | ||
Assert.AreEqual(TabIdModify, ribbonPanel.GetRibbonTab().Id); | ||
} | ||
|
||
[Test] | ||
public void MovePanelWithId_AddIns() | ||
{ | ||
ribbonPanel.MoveToRibbonTab(TabIdModify); | ||
ribbonPanel.MoveToRibbonTab(TabIdAddIns); | ||
Assert.AreEqual(TabIdAddIns, ribbonPanel.GetRibbonTab().Id); | ||
} | ||
|
||
[Test] | ||
public void MovePanelWithTab_First() | ||
{ | ||
var ribbonTab = RibbonTabExtension.GetRibbonTabs().FirstOrDefault(); | ||
ribbonPanel.MoveToRibbonTab(ribbonTab); | ||
Assert.AreEqual(ribbonTab, ribbonPanel.GetRibbonTab()); | ||
} | ||
|
||
[Test] | ||
public void MovePanelWithTab_ForEach() | ||
{ | ||
foreach (var ribbonTab in RibbonTabExtension.GetRibbonTabs()) | ||
{ | ||
ribbonPanel.MoveToRibbonTab(ribbonTab); | ||
Assert.AreEqual(ribbonTab, ribbonPanel.GetRibbonTab()); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters