-
-
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.
Add
TestsRevitUI
to validate fake RevitAPIUI
reference
- Loading branch information
Showing
5 changed files
with
41 additions
and
0 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
Binary file modified
BIN
-171 Bytes
(100%)
ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip
Binary file not shown.
Binary file modified
BIN
-108 Bytes
(100%)
ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip
Binary file not shown.
Binary file modified
BIN
-195 Bytes
(100%)
ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip
Binary file not shown.
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,39 @@ | ||
using Autodesk.Revit.ApplicationServices; | ||
using Autodesk.Revit.UI; | ||
using NUnit.Framework; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
|
||
namespace ricaun.RevitTest.Tests | ||
{ | ||
public class TestsRevitUI | ||
{ | ||
static IEnumerable<Type> GetTypes() | ||
{ | ||
yield return typeof(UIApplication); | ||
yield return typeof(Application); | ||
yield return typeof(UIFramework.RevitRibbonControl); | ||
yield return typeof(Autodesk.Windows.RibbonControl); | ||
} | ||
[TestCaseSource(nameof(GetTypes))] | ||
public void TestTypes(Type type) | ||
{ | ||
Console.WriteLine(type); | ||
} | ||
|
||
#if DEBUG | ||
static IEnumerable<Assembly> GetAssemblyTypes() | ||
{ | ||
return GetTypes().Select(t => t.Assembly); | ||
} | ||
|
||
[TestCaseSource(nameof(GetAssemblyTypes))] | ||
public void TestAssemblyTypes(Assembly assembly) | ||
{ | ||
Console.WriteLine(assembly); | ||
} | ||
#endif | ||
} | ||
} |