PR feedback

This commit is contained in:
Ryan Nowak 2017-08-30 16:39:12 -07:00
parent d8431067a5
commit 9dfe2a0a81
2 changed files with 4 additions and 5 deletions

View File

@ -40,12 +40,12 @@ namespace Xunit
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)
{
throw new InvalidOperationException("Use [ForegroundFactAttribute]");
throw new InvalidOperationException($"Use [{nameof(ForegroundFactAttribute)}]");
}
}
}

View File

@ -2,14 +2,13 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Xunit;
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
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
[XunitTestCaseDiscoverer(nameof(ForegroundFactAttribute), nameof(Microsoft.VisualStudio.LanguageServices.Razor))]
[XunitTestCaseDiscoverer("Xunit.ForegroundFactAttribute", "Microsoft.VisualStudio.LanguageServices.Razor")]
internal class ForegroundFactAttribute : FactAttribute
{
}