Skip to content

Commit

Permalink
chore: Allow AttributeTargets Assembly for SetCulture and `SetUICul…
Browse files Browse the repository at this point in the history
…ture` (#557)
  • Loading branch information
samtrion authored Dec 16, 2024
1 parent 71ef707 commit fe631c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// Provides basic functionality for culture-based testing.
/// </summary>
[AttributeUsage(
AttributeTargets.Class | AttributeTargets.Method,
AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method,
AllowMultiple = true,
Inherited = true
)]
Expand Down
5 changes: 4 additions & 1 deletion src/NetEvolve.Extensions.XUnit/SetCultureAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
/// <summary>
/// Based on the value passed as culture, the marked test is executed.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false)]
[AttributeUsage(
AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method,
Inherited = false
)]
public sealed class SetCultureAttribute : CultureAttributeBase
{
private readonly CultureInfo _uiCulture;
Expand Down
5 changes: 4 additions & 1 deletion src/NetEvolve.Extensions.XUnit/SetUICultureAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
/// <summary>
/// Based on the value passed as UI culture, the marked test is executed.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false)]
[AttributeUsage(
AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method,
Inherited = false
)]
public sealed class SetUICultureAttribute : CultureAttributeBase
{
/// <summary>
Expand Down

0 comments on commit fe631c8

Please sign in to comment.