Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit b85fb26

Browse files
authored
Second attempt to use NUnitTestAssemblyRunner's Load overload with the assembly name (#117)
Due to legacy Xamarin test failures: dotnet/macios#17819 (comment) The change should only affect tests and code paths which are using NUnit nuget package. Related to: #116
1 parent 2836386 commit b85fb26

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

NUnitLite/TouchRunner/TouchRunner.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected virtual void ExecuteOnMainThread (Action action)
166166
public void LoadSync ()
167167
{
168168
foreach (Assembly assembly in assemblies)
169-
Load (assembly.GetName().Name);
169+
Load (assembly);
170170
assemblies.Clear ();
171171
}
172172

@@ -603,9 +603,7 @@ public bool Load (string assemblyName, IDictionary<string, object> settings = nu
603603

604604
public bool Load (Assembly assembly, IDictionary<string, object> settings = null)
605605
{
606-
var runner = new NUnitTestAssemblyRunner (builder);
607-
runners.Add (runner);
608-
return AddSuite ((TestSuite) runner.Load (assembly, CreateSettings (settings)));
606+
return Load (assembly.GetName ().Name, settings);
609607
}
610608
#else
611609
NUnitLiteTestAssemblyBuilder builder = new NUnitLiteTestAssemblyBuilder ();

0 commit comments

Comments
 (0)