Allow flaky attribute on class and assembly (dotnet/extensions#1742)

* Allow flaky attribute on class and assembly\n\nCommit migrated from 23ba460e27
This commit is contained in:
John Luo 2019-05-29 16:22:17 -07:00 committed by GitHub
parent 78daf0166c
commit 73e95c56c1
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ namespace Microsoft.Extensions.ObjectPool
{
// Arrange
var pool = new DefaultObjectPool<List<int>>(new ListPolicy());
// Act
var list = pool.Get();

View File

@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Testing.xunit
/// </para>
/// </example>
[TraitDiscoverer("Microsoft.AspNetCore.Testing.xunit.FlakyTestDiscoverer", "Microsoft.AspNetCore.Testing")]
[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)]
public sealed class FlakyAttribute : Attribute, ITraitAttribute
{
/// <summary>