diff --git a/Directory.Build.props b/Directory.Build.props index 3f780fa..3476d95 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -43,10 +43,10 @@ - + - + \ No newline at end of file diff --git a/src/Atc.Test/Atc.Test.csproj b/src/Atc.Test/Atc.Test.csproj index 7f00624..6cdc81e 100644 --- a/src/Atc.Test/Atc.Test.csproj +++ b/src/Atc.Test/Atc.Test.csproj @@ -18,8 +18,8 @@ - - + + \ No newline at end of file diff --git a/src/Atc.Test/AutoNSubstituteDataAttribute.cs b/src/Atc.Test/AutoNSubstituteDataAttribute.cs index f12e68c..dcdae00 100644 --- a/src/Atc.Test/AutoNSubstituteDataAttribute.cs +++ b/src/Atc.Test/AutoNSubstituteDataAttribute.cs @@ -7,6 +7,7 @@ namespace Atc.Test; /// /// NSubstitute is used when the type is abstract, or when the is applied. /// +[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public sealed class AutoNSubstituteDataAttribute : AutoDataAttribute { /// diff --git a/src/Atc.Test/InlineAutoNSubstituteDataAttribute.cs b/src/Atc.Test/InlineAutoNSubstituteDataAttribute.cs index 28afad8..1946468 100644 --- a/src/Atc.Test/InlineAutoNSubstituteDataAttribute.cs +++ b/src/Atc.Test/InlineAutoNSubstituteDataAttribute.cs @@ -11,6 +11,7 @@ namespace Atc.Test; "Design", "CA1019:Define accessors for attribute arguments", Justification = "By design")] +[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)] public sealed class InlineAutoNSubstituteDataAttribute : CompositeDataAttribute { /// diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 93e4ae2..96a2d6a 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -54,7 +54,7 @@ - + \ No newline at end of file diff --git a/test/Atc.Test.Tests/Atc.Test.Tests.csproj b/test/Atc.Test.Tests/Atc.Test.Tests.csproj index 7189f60..96f0973 100644 --- a/test/Atc.Test.Tests/Atc.Test.Tests.csproj +++ b/test/Atc.Test.Tests/Atc.Test.Tests.csproj @@ -7,9 +7,9 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all