提交 9fd09c6b 编写于 作者: J Jared Parsons

More WorkItem attribute cleanup

This change does the following:

- Deletes the constructor WorkItem(int) leaving only WorkItem(int, string).
- Fixes up many occurences where the URL of the bug was missing / incorrect.
- Removes several WorkItem attributes that had invalid bug ids
上级 353d2304
......@@ -974,7 +974,7 @@ public void M(dynamic arg = null)
CompileAndVerify(source, new[] { SystemCoreRef });
}
[Fact, WorkItem(16, "unknown")]
[Fact, WorkItem(16, "http://roslyn.codeplex.com/workitem/16")]
public void RemoveAtOfKeywordAsDynamicMemberName()
{
string source = @"
......
......@@ -6634,7 +6634,6 @@ .maxstack 2
}");
}
[WorkItem(1, "unknown")]
[Fact]
public void Bug1()
{
......
......@@ -679,7 +679,7 @@ public static void M<T>(System.Func<T> f)
Diagnostic(ErrorCode.ERR_NameNotInContext, "E").WithArguments("E"));
}
[WorkItem(9142, "unknown")]
[WorkItem(9145, "http://vstfdevdiv:8080/DevDiv_Projects/Roslyn/_workitems/edit/9145")]
[Fact]
public void Bug9145()
{
......
......@@ -1243,7 +1243,7 @@ End Class
CompileAndVerify(source, "all working here")
End Sub
<Fact, WorkItem(17302)>
<Fact>
Public Sub InvalidDelegateRelaxationForSharednessMismatch()
Dim compilationDef = <compilation>
<file name="a.vb"><![CDATA[
......@@ -1272,7 +1272,7 @@ End Module
CompileAndVerify(compilation, expectedOutput:="2")
End Sub
<Fact, WorkItem(17302)>
<Fact>
Public Sub InvalidDelegateRelaxationForSharednessMismatch_2()
Dim compilationDef = <compilation>
<file name="a.vb"><![CDATA[
......@@ -1314,7 +1314,7 @@ BC30518: Overload resolution failed because no accessible 'Foo' can be called wi
</expected>)
End Sub
<Fact, WorkItem(17302)>
<Fact>
Public Sub InvalidDelegateRelaxationForMyClassMismatch()
Dim compilationDef = <compilation>
<file name="a.vb"><![CDATA[
......
......@@ -143,7 +143,7 @@ public enum Foo
hideAdvancedMembers: false);
}
[WorkItem(8540099)]
[WorkItem(854099, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/854099")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async Task NotInComment()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -586,14 +586,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -539,14 +539,12 @@ public async Task TestNotInPreProcessor()
}");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -558,14 +558,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -654,14 +654,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -592,14 +592,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,7 +585,6 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -641,7 +641,6 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -585,14 +585,12 @@ class C { }
");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -631,14 +631,12 @@ public async Task TestNotInDefaultExpression()
static void Method1(void* p1 = default($$");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestAfterAsync()
{
await VerifyKeywordAsync(@"class c { async $$ }");
}
[WorkItem(18374)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestNotAfterAsyncAsType()
{
......
......@@ -2589,7 +2589,6 @@ .maxstack 1
});
}
[WorkItem(947, "unknown")]
[Fact]
public void DuplicateEditorBrowsableAttributes()
{
......
......@@ -2578,7 +2578,6 @@ End Class"
locals.Free()
End Sub
<WorkItem(947, "unknown")>
<Fact>
Public Sub DuplicateEditorBrowsableAttributes()
Const libSource = "
......
......@@ -519,7 +519,6 @@ End Class
Assert.Equal($"error BC30652: Reference required to assembly '{missingIdentity}' containing the type 'MissingType'. Add one to your project.", errorMessage)
End Sub
<WorkItem(2547, "unknown")>
<Fact>
Public Sub TryDifferentLinqLibraryOnRetry()
Dim source = "
......
......@@ -82,7 +82,7 @@ public void Await()
}
[Fact]
[WorkItem(7133)]
[WorkItem(7133, "http://github.com/dotnet/roslyn/issues/7133")]
public void TestDisplayResultsWithCurrentUICulture()
{
var runner = CreateRunner(input:
......@@ -455,7 +455,6 @@ > nameof(Microsoft.CodeAnalysis)
> ", runner.Console.Out.ToString());
}
[WorkItem(5748, "unknown")]
[Fact]
public void RelativePath()
{
......
......@@ -130,7 +130,7 @@ Type ""#help"" for more information.
End Sub
<Fact()>
<WorkItem(7133)>
<WorkItem(7133, "https://github.com/dotnet/roslyn/issues/7133")>
Public Sub TestDisplayResultsWithCurrentUICulture()
Dim runner = CreateRunner(args:={}, input:="Imports System.Globalization
System.Globalization.CultureInfo.DefaultThreadCurrentUICulture = System.Globalization.CultureInfo.GetCultureInfo(""en-GB"")
......@@ -182,4 +182,4 @@ Type ""#help"" for more information.
End Class
End Namespace
\ No newline at end of file
End Namespace
......@@ -23,11 +23,6 @@ public string Description
get { return _description; }
}
public WorkItemAttribute(int id)
: this(id, string.Empty)
{
}
public WorkItemAttribute(int id, string description)
{
_id = id;
......
......@@ -107,7 +107,7 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Progression
End Using
End Function
<WorkItem(165369, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems#_a=edit&id=165369")>
<WorkItem(165369, "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/165369")>
<Fact, Trait(Traits.Feature, Traits.Features.Progression)>
Public Async Function ContainsChildrenForNodeWithRelativeUriPath() As Task
Using testState = Await ProgressionTestState.CreateAsync(
......
......@@ -177,7 +177,6 @@ class MyClass
<Fact, Trait(Traits.Feature, Traits.Features.RQName)>
<WorkItem(7924037)>
Public Async Function TestRQNameForAnonymousTypeReturnsNull() As Task
Dim markup = <Text><![CDATA[
class Program
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册