提交 4b550e88 编写于 作者: S Sam Harwell

Remove unnecessary use of WpfFact

Closes #7438
上级 9b809a3f
......@@ -12,10 +12,9 @@
namespace Microsoft.CodeAnalysis.UnitTests
{
public partial class AsyncLazyTests
public class AsyncLazyTests
{
// This probably shouldn't need WpfFact, but the failure is being tracked by https://github.com/dotnet/roslyn/issues/7438
[WpfFact, Trait(Traits.Feature, Traits.Features.AsyncLazy)]
[Fact, Trait(Traits.Feature, Traits.Features.AsyncLazy)]
public void CancellationDuringInlinedComputationFromGetValueStillCachesResult()
{
CancellationDuringInlinedComputationFromGetValueOrGetValueAsyncStillCachesResultCore((lazy, ct) => lazy.GetValue(ct), includeSynchronousComputation: true);
......@@ -64,7 +63,7 @@ private static void CancellationDuringInlinedComputationFromGetValueOrGetValueAs
Assert.Equal(1, computations);
}
[WpfFact, Trait(Traits.Feature, Traits.Features.AsyncLazy)]
[Fact, Trait(Traits.Feature, Traits.Features.AsyncLazy)]
public void SynchronousRequestShouldCacheValueWithAsynchronousComputeFunction()
{
var lazy = new AsyncLazy<object>(c => Task.FromResult(new object()), cacheResult: true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册