File tree Expand file tree Collapse file tree
Chickensoft.AutoInject.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525
2626 <PackageReference Include =" Chickensoft.GoDotTest" Version =" 2.0.28" />
2727 <PackageReference Include =" Chickensoft.GodotTestDriver" Version =" 3.1.59" />
28- <PackageReference Include =" Chickensoft.GodotNodeInterfaces" Version =" 2.4.60 " />
28+ <PackageReference Include =" Chickensoft.GodotNodeInterfaces" Version =" 3.0.1 " />
2929 <PackageReference Include =" Chickensoft.Introspection" Version =" 3.0.2" />
3030 <PackageReference Include =" Chickensoft.Introspection.Generator" Version =" 3.0.2" PrivateAssets =" all" OutputItemType =" analyzer" />
3131 </ItemGroup >
Original file line number Diff line number Diff line change @@ -2,11 +2,16 @@ namespace Chickensoft.AutoInject.Tests;
22
33using System . Reflection ;
44using Chickensoft . GoDotTest ;
5+ using Chickensoft . GodotNodeInterfaces ;
56using Godot ;
67
78public partial class Tests : Node2D
89{
9- public override void _Ready ( ) => CallDeferred ( MethodName . RunTests ) ;
10+ public override void _Ready ( )
11+ {
12+ RuntimeContext . IsTesting = true ;
13+ CallDeferred ( MethodName . RunTests ) ;
14+ }
1015
1116 public void RunTests ( ) =>
1217 GoTest . RunTests ( Assembly . GetExecutingAssembly ( ) , this ) ;
Original file line number Diff line number Diff line change @@ -134,11 +134,11 @@ public void GetChildReturnsNodeByIndex()
134134 }
135135
136136 [ Test ]
137- public void GetChildThrowsOnInvalidIndex ( )
137+ public void GetChildReturnsNullOnInvalidIndex ( )
138138 {
139139 var tree = new FakeNodeTree ( TestScene ) ;
140140
141- Should . Throw < ArgumentOutOfRangeException > ( ( ) => tree . GetChild < INode > ( 0 ) ) ;
141+ tree . GetChild < INode > ( 0 ) . ShouldBeNull ( ) ;
142142 }
143143
144144 [ Test ]
You can’t perform that action at this time.
0 commit comments