Skip to content

Commit

Permalink
Move a few types from core to engine assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Jan 2, 2025
1 parent 74d4407 commit 3b44b6b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
using System.Globalization;
using System.Xml;

namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
sealed class ExtensionAttribute : Attribute { }
}

namespace NUnit.ConsoleRunner
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static IExtensionAssembly MockExtension(string assemblyName = "Extension
sub.AssemblyName.Returns(assemblyName);
sub.AssemblyVersion.Returns(assemblyVersion ?? new Version(1, 0));
targetFramework = targetFramework ?? new Version(2, 0);
sub.FrameworkName.Returns(new FrameworkName(FrameworkIdentifiers.NetFramework, targetFramework));
sub.FrameworkName.Returns(new FrameworkName(".NETFramework", targetFramework));
sub.FromWildCard.Returns(fromWildcard);
return sub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ internal void FindExtensionsInAssembly(ExtensionAssembly extensionAssembly)
Version currentVersion = RuntimeInformation.FrameworkVersion;
var frameworkName = extensionAssembly.FrameworkName;

if (frameworkName.Identifier != FrameworkIdentifiers.NetFramework || frameworkName.Version > currentVersion)
if (frameworkName.Identifier != ".NETFramework" || frameworkName.Version > currentVersion)
{
if (!extensionAssembly.FromWildCard)
{
Expand Down
File renamed without changes.

0 comments on commit 3b44b6b

Please sign in to comment.