Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Convert tests to Microsoft.CodeAnalysis.Testing #999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 23, 2018

Conversation

sharwell
Copy link
Contributor

🚧 This is a work in progress as part of validating the new library works well with different analyzer projects.

Blocked on #998 (and the diff will get much smaller after that one is merged).

@@ -17,7 +18,7 @@ namespace ConsoleApplication1
{
class TypeName
{
public async Task Foo()
public async {|CS0246:Task|} {|CS0161:{|CS1983:Foo|}|}()
Copy link
Contributor Author

@sharwell sharwell Sep 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 These compiler errors are due to a missing import of System.Threading.Tasks. The current form is a direct translation of the previous test to the new framework. If the compiler errors were not intended, let me know and I can update the test.

{
if (x == 1)
throw;
else
return;
}
}|]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 The new test library revealed that the span of this diagnostic covers the entire catch clause. If this wasn't specifically intended, consider filing a bug to only report the warning on the catch token.

@@ -44,7 +45,7 @@ namespace ConsoleApplication1
{
class TypeName
{
public async Task Foo()
public async {|CS0246:Task|} {|CS0161:{|CS1983:Foo|}|}()
Copy link
Contributor Author

@sharwell sharwell Sep 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 These compiler errors are due to a missing import of System.Threading.Tasks. The current form is a direct translation of the previous test to the new framework. If the compiler errors were not intended, let me know and I can update the test.

@coveralls
Copy link

coveralls commented Sep 10, 2018

Coverage Status

Coverage increased (+0.06%) to 91.686% when pulling a6e6342 on sharwell:test-library into 5e164b0 on code-cracker:master.

@@ -36,7 +38,7 @@ namespace ConsoleApplication1
{
class TypeName
{
public async Task Foo()
public async {|CS0246:Task|} {|CS0161:{|CS1983:Foo|}|}()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Compiler errors due to missing import for System.Threading.Tasks

@@ -137,16 +149,16 @@ namespace ConsoleApplication1
{
class TypeName
{
public async Task Foo()
public async {|CS0246:Task|} {|CS0161:{|CS1983:Foo|}|}()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Compiler errors due to missing import for System.Threading.Tasks

@@ -162,7 +174,7 @@ namespace ConsoleApplication1
{
class TypeName
{
public async Task Foo()
public async {|CS0246:Task|} {|CS0161:{|CS1983:Foo|}|}()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Compiler errors due to missing import for System.Threading.Tasks

@carloscds carloscds merged commit d1561e7 into code-cracker:master Oct 23, 2018
@sharwell sharwell deleted the test-library branch November 27, 2018 15:03
@sharwell
Copy link
Contributor Author

@carloscds If you have any trouble using this library (a near certainty at times), please do not hesitate to contact me on Gitter and/or file a bug report on dotnet/roslyn-sdk.

@carloscds
Copy link
Contributor

@sharwell Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants