Skip to content

Commit

Permalink
Fix tests for net8
Browse files Browse the repository at this point in the history
  • Loading branch information
sm6srw committed Nov 30, 2023
1 parent 1a162cd commit fed09bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<Solution>Dynamo.All.sln</Solution>
<Platform>Any CPU</Platform>
<DotNet>net8.0</DotNet>
<DotNet>net6.0</DotNet>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<NuGetPath>$(MSBuildProjectDirectory)\..\tools\Nuget\NuGet.exe</NuGetPath>
</PropertyGroup>
Expand Down
8 changes: 8 additions & 0 deletions test/Libraries/DynamoPythonTests/CodeCompletionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ public void SharedCoreCanReturnCLRCompletionData()

Assert.IsTrue(completionList.Any());
Assert.IsTrue(completionList.Intersect(new[] { "Hashtable", "Queue", "Stack" }).Count() == 3);
#if NET8_0_OR_GREATER
Assert.IsTrue(completionData.Length == 32);
#else
Assert.IsTrue(completionData.Length == 31);
#endif
}
}

Expand Down Expand Up @@ -236,7 +240,11 @@ public void CanImportSystemCollectionsLibraryAndGetCompletionData()

Assert.IsTrue(completionList.Any());
Assert.IsTrue(completionList.Intersect(new[] { "Hashtable", "Queue", "Stack" }).Count() == 3);
#if NET8_0_OR_GREATER
Assert.IsTrue(completionData.Length == 32);
#else
Assert.IsTrue(completionData.Length == 31);
#endif
}

[Test]
Expand Down

0 comments on commit fed09bd

Please sign in to comment.