-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Tests.cs
39 lines (35 loc) · 1.09 KB
/
Tests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using NUnit.Framework;
using System;
namespace RevitTest.Sample
{
public class Tests
{
[Test]
public void RevitTests_VersionName(UIApplication uiapp)
{
Assert.IsNotNull(uiapp);
Console.WriteLine(uiapp.Application.VersionName);
}
[Test]
public void RevitTests_VersionName(Application application)
{
Assert.IsNotNull(application);
Console.WriteLine(application.VersionName);
}
[Test]
public void RevitTests_VersionName(UIControlledApplication uiControlledApplication)
{
Assert.IsNotNull(uiControlledApplication);
Console.WriteLine(uiControlledApplication.ControlledApplication.VersionName);
}
[Test]
public void RevitTests_VersionName(ControlledApplication controlledApplication)
{
Assert.IsNotNull(controlledApplication);
Console.WriteLine(controlledApplication.VersionName);
}
}
}