-
Notifications
You must be signed in to change notification settings - Fork 635
/
ExperimentalNodesTests.cs
37 lines (35 loc) · 1.36 KB
/
ExperimentalNodesTests.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
using Dynamo.Engine;
using NUnit.Framework;
namespace Dynamo.Tests
{
[TestFixture]
internal class ExperimentalNodesTests
{
[Test]
public void FunctionDescriptorIsMarkedExperimentalByExperimentalPrefsSection()
{
var x = new FunctionDescriptor(new FunctionDescriptorParams
{
Assembly = "ProtoGeometry.dll",
ClassName = "Autodesk.DesignScript.Geometry.PanelSurface",
FunctionName = "somefunc",
Parameters = [],
ReturnType = ProtoCore.TypeSystem.BuildPrimitiveTypeObject(ProtoCore.PrimitiveType.Void),
FunctionType = FunctionType.InstanceMethod,
IsVisibleInLibrary = true,
ReturnKeys = [],
PathManager = null,
IsVarArg = false,
ObsoleteMsg = null,
CanUpdatePeriodically = false,
IsBuiltIn = false,
IsPackageMember = false,
IsLacingDisabled = false,
//even though this is set to false, the function should be marked as experimental
//because the assembly/classname combination is marked as experimental in the experimental prefs section
IsExperimental = false,
});
Assert.That(x.IsExperimental, Is.True);
}
}
}