Skip to content

Commit 92b7480

Browse files
authored
fix: Removed flaky SetCultureAttribute for XUnit.V3 (#505)
1 parent 8051002 commit 92b7480

File tree

10 files changed

+0
-733
lines changed

10 files changed

+0
-733
lines changed

src/NetEvolve.Extensions.XUnit.V3/Internal/CultureAttributeBase.cs

Lines changed: 0 additions & 87 deletions
This file was deleted.

src/NetEvolve.Extensions.XUnit.V3/SetCultureAttribute.cs

Lines changed: 0 additions & 100 deletions
This file was deleted.

src/NetEvolve.Extensions.XUnit.V3/SetUICultureAttribute.cs

Lines changed: 0 additions & 50 deletions
This file was deleted.

tests/NetEvolve.Extensions.XUnit.V3.Tests.PublicApi/_snapshots/DotNet6_0/PublicApiTests.PublicApi_HasNotChanged_Expected.verified.txt

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,6 @@
6060
{
6161
public PreDeploymentAttribute() { }
6262
}
63-
public sealed class SetCultureAttribute : NetEvolve.Extensions.XUnit.V3.Internal.CultureAttributeBase
64-
{
65-
public SetCultureAttribute() { }
66-
public SetCultureAttribute(string culture) { }
67-
public SetCultureAttribute(string culture, string? uiCulture) { }
68-
public string? UICulture { get; }
69-
public override System.Threading.Tasks.ValueTask After(System.Reflection.MethodInfo methodUnderTest, Xunit.v3.IXunitTest test) { }
70-
public override System.Threading.Tasks.ValueTask Before(System.Reflection.MethodInfo methodUnderTest, Xunit.v3.IXunitTest test) { }
71-
public override System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> GetTraits() { }
72-
}
73-
public sealed class SetUICultureAttribute : NetEvolve.Extensions.XUnit.V3.Internal.CultureAttributeBase
74-
{
75-
public SetUICultureAttribute() { }
76-
public SetUICultureAttribute(string culture) { }
77-
public override System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> GetTraits() { }
78-
}
7963
public sealed class UnitTestAttribute : NetEvolve.Extensions.XUnit.V3.Internal.CategoryTraitBaseAttribute
8064
{
8165
public UnitTestAttribute() { }
@@ -109,13 +93,4 @@ namespace NetEvolve.Extensions.XUnit.V3.Internal
10993
public string? Id { get; }
11094
public System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> GetTraits() { }
11195
}
112-
public abstract class CultureAttributeBase : System.Attribute, Xunit.v3.IBeforeAfterTestAttribute, Xunit.v3.ITraitAttribute
113-
{
114-
protected CultureAttributeBase(string category, string culture) { }
115-
public string Category { get; }
116-
public string Culture { get; }
117-
public virtual System.Threading.Tasks.ValueTask After(System.Reflection.MethodInfo methodUnderTest, Xunit.v3.IXunitTest test) { }
118-
public virtual System.Threading.Tasks.ValueTask Before(System.Reflection.MethodInfo methodUnderTest, Xunit.v3.IXunitTest test) { }
119-
public abstract System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> GetTraits();
120-
}
12196
}

tests/NetEvolve.Extensions.XUnit.V3.Tests.PublicApi/_snapshots/DotNet8_0/PublicApiTests.PublicApi_HasNotChanged_Expected.verified.txt

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,6 @@
6060
{
6161
public PreDeploymentAttribute() { }
6262
}
63-
public sealed class SetCultureAttribute : NetEvolve.Extensions.XUnit.V3.Internal.CultureAttributeBase
64-
{
65-
public SetCultureAttribute() { }
66-
public SetCultureAttribute(string culture) { }
67-
public SetCultureAttribute(string culture, string? uiCulture) { }
68-
public string? UICulture { get; }
69-
public override System.Threading.Tasks.ValueTask After(System.Reflection.MethodInfo methodUnderTest, Xunit.v3.IXunitTest test) { }
70-
public override System.Threading.Tasks.ValueTask Before(System.Reflection.MethodInfo methodUnderTest, Xunit.v3.IXunitTest test) { }
71-
public override System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> GetTraits() { }
72-
}
73-
public sealed class SetUICultureAttribute : NetEvolve.Extensions.XUnit.V3.Internal.CultureAttributeBase
74-
{
75-
public SetUICultureAttribute() { }
76-
public SetUICultureAttribute(string culture) { }
77-
public override System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> GetTraits() { }
78-
}
7963
public sealed class UnitTestAttribute : NetEvolve.Extensions.XUnit.V3.Internal.CategoryTraitBaseAttribute
8064
{
8165
public UnitTestAttribute() { }
@@ -109,13 +93,4 @@ namespace NetEvolve.Extensions.XUnit.V3.Internal
10993
public string? Id { get; }
11094
public System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> GetTraits() { }
11195
}
112-
public abstract class CultureAttributeBase : System.Attribute, Xunit.v3.IBeforeAfterTestAttribute, Xunit.v3.ITraitAttribute
113-
{
114-
protected CultureAttributeBase(string category, string culture) { }
115-
public string Category { get; }
116-
public string Culture { get; }
117-
public virtual System.Threading.Tasks.ValueTask After(System.Reflection.MethodInfo methodUnderTest, Xunit.v3.IXunitTest test) { }
118-
public virtual System.Threading.Tasks.ValueTask Before(System.Reflection.MethodInfo methodUnderTest, Xunit.v3.IXunitTest test) { }
119-
public abstract System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, string>> GetTraits();
120-
}
12196
}

tests/NetEvolve.Extensions.XUnit.V3.Tests.Unit/SetCultureAttributeTests.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)