From 7bd8dee6a2d9a081b134324840e91914fbf3d20a Mon Sep 17 00:00:00 2001 From: Lars-Erik Aabech Date: Mon, 21 Oct 2019 23:01:23 +0200 Subject: [PATCH] Changed TestOptionAttributeBase type resolving to use Assemby instead of String --- src/Umbraco.Tests/Testing/TestOptionAttributeBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Tests/Testing/TestOptionAttributeBase.cs b/src/Umbraco.Tests/Testing/TestOptionAttributeBase.cs index dd92edd7e7..9ad0380838 100644 --- a/src/Umbraco.Tests/Testing/TestOptionAttributeBase.cs +++ b/src/Umbraco.Tests/Testing/TestOptionAttributeBase.cs @@ -9,7 +9,7 @@ namespace Umbraco.Tests.Testing { public abstract class TestOptionAttributeBase : Attribute { - public static readonly List ScanAssemblies = new List(); + public static readonly List ScanAssemblies = new List(); public static TOptions GetTestOptions(MethodInfo method) where TOptions : TestOptionAttributeBase, new() @@ -35,11 +35,11 @@ namespace Umbraco.Tests.Testing if (type == null) { type = ScanAssemblies - .Select(x => Type.GetType(typeName + ", " + x, false)) + .Select(assembly => assembly.GetType(typeName, false)) .FirstOrDefault(x => x != null); if (type == null) { - throw new PanicException($"Could not resolve the type from type name {typeName}"); // makes no sense + throw new PanicException($"Could not resolve the running test fixture from type name {typeName}"); // makes no sense } } var methodInfo = type.GetMethod(methodName); // what about overloads?