-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GD-343: Fix
.NET: Failed to unload assemblies
error when unload the…
… plugin (#344) # Why Some GdUnit4 users reported these errors on discord -> https://discordapp.com/channels/885149082119733269/1201435634875764756 # What * do not extend anymore from the gdunit assembly, we only load the class and use the static methods * rename classes from `mono` to `csharp` (mono is outdated)
- Loading branch information
1 parent
c11378d
commit 1340d01
Showing
15 changed files
with
86 additions
and
82 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
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
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
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
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
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
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
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,19 @@ | ||
using Godot; | ||
using Godot.Collections; | ||
|
||
using GdUnit4; | ||
|
||
// GdUnit4 GDScript - C# API wrapper | ||
public partial class GdUnit4CSharpApi : RefCounted | ||
{ | ||
public static string Version() => GdUnit4MonoAPI.Version(); | ||
|
||
public static bool IsTestSuite(string classPath) => GdUnit4MonoAPI.IsTestSuite(classPath); | ||
|
||
public static RefCounted Executor(Node listener) => (RefCounted)GdUnit4MonoAPI.Executor(listener); | ||
|
||
public static GdUnit4.CsNode? ParseTestSuite(string classPath) => GdUnit4MonoAPI.ParseTestSuite(classPath); | ||
|
||
public static Dictionary CreateTestSuite(string sourcePath, int lineNumber, string testSuitePath) => | ||
GdUnit4MonoAPI.CreateTestSuite(sourcePath, lineNumber, testSuitePath); | ||
} |
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
This file was deleted.
Oops, something went wrong.
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
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
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
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,22 @@ | ||
namespace GdUnit4 | ||
{ | ||
using static Assertions; | ||
|
||
[TestSuite] | ||
public partial class GdUnit4CSharpApiTest | ||
{ | ||
|
||
[TestCase] | ||
public void IsTestSuite() | ||
{ | ||
AssertThat(GdUnit4CSharpApi.IsTestSuite("res://addons/gdUnit4/src/mono/GdUnit4CSharpApi.cs")).IsFalse(); | ||
AssertThat(GdUnit4CSharpApi.IsTestSuite("res://addons/gdUnit4/test/mono/ExampleTestSuite.cs")).IsTrue(); | ||
} | ||
|
||
[TestCase] | ||
public void GetVersion() | ||
{ | ||
AssertThat(GdUnit4CSharpApi.Version()).IsEqual("4.2.0.0"); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.