PR feedback
This commit is contained in:
parent
d8431067a5
commit
9dfe2a0a81
|
|
@ -40,12 +40,12 @@ namespace Xunit
|
||||||
|
|
||||||
protected override void QueueTask(Task task)
|
protected override void QueueTask(Task task)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("Use [ForegroundFactAttribute]");
|
throw new InvalidOperationException($"Use [{nameof(ForegroundFactAttribute)}]");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
|
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("Use [ForegroundFactAttribute]");
|
throw new InvalidOperationException($"Use [{nameof(ForegroundFactAttribute)}]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,13 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Xunit;
|
|
||||||
using Xunit.Sdk;
|
using Xunit.Sdk;
|
||||||
|
|
||||||
namespace Microsoft.VisualStudio.LanguageServices.Razor.Test
|
namespace Xunit
|
||||||
{
|
{
|
||||||
// Similar to WpfFactAttribute https://github.com/xunit/samples.xunit/blob/969d9f7e887836f01a6c525324bf3db55658c28f/STAExamples/WpfFactAttribute.cs
|
// Similar to WpfFactAttribute https://github.com/xunit/samples.xunit/blob/969d9f7e887836f01a6c525324bf3db55658c28f/STAExamples/WpfFactAttribute.cs
|
||||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
||||||
[XunitTestCaseDiscoverer(nameof(ForegroundFactAttribute), nameof(Microsoft.VisualStudio.LanguageServices.Razor))]
|
[XunitTestCaseDiscoverer("Xunit.ForegroundFactAttribute", "Microsoft.VisualStudio.LanguageServices.Razor")]
|
||||||
internal class ForegroundFactAttribute : FactAttribute
|
internal class ForegroundFactAttribute : FactAttribute
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue