Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Added tests for Microsoft.VisualBasic.CompilerServices.Conversions #1… #26744

Merged
merged 4 commits into from
Feb 13, 2018

Conversation

OzieGamma
Copy link
Contributor

…4344

Hi,

I am trying to get started with contributing to corefx. Is this the kind of code coverage you are looking for?

@dotnet-bot test code coverage please

NB: I'll squash this branch with more tests if I am going in the correct direction

@OmarTawfik
Copy link
Contributor

@OzieGamma this is great to see! :)
You might want to take a look at the respective C# tests as well for coverage examples: https://github.com/dotnet/corefx/tree/master/src/Microsoft.CSharp/tests
cc @JonHanna in case you're working on similar items.

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for adding these.

@stephentoub
Copy link
Member

@dotnet-bot test NETFX x86 Release Build please

@stephentoub
Copy link
Member

@dotnet-bot test this please

{
Assert.Throws<InvalidCastException>(() => Conversions.ToBoolean(str));
}

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: blank line.

@OmarTawfik
Copy link
Contributor

Other than the nit, I think this is ready to merge.

@OzieGamma
Copy link
Contributor Author

What does NIT mean?

@stephentoub
Copy link
Member

nit == minor issue... as in "nitpicking" https://en.m.wiktionary.org/wiki/nitpick

@JonHanna
Copy link
Contributor

If you plan to take the Microsoft.CSharp tests as a guide to what needs coverage it'd also be worth looking at some of the dynamic tests within System.Linq.Expressions which is picked up for the coverage of Microsoft.CSharp since the use of dynamic in C# needs types from both and so the same tests genuinely test both. There may be tests there for which there are useful VB equivalents. There might be some benefit in looking at System.Dynamic.Runtime's tests too.

@OzieGamma
Copy link
Contributor Author

@JonHanna I am not familiar at all with the code/tests. That's why I am trying to pick up the easy PRs. I'll have a look and do another PR if needed.

@JonHanna
Copy link
Contributor

Oh, it would definitely want to be separate to this, probably several PRs. Or maybe there's not much worth taking as a starting point, but as Omar says there's likely stuff there that could help make some such PRs easier to plan.

@OmarTawfik
Copy link
Contributor

LGTM. Thanks @OzieGamma
Let us know if we can provide any other pointers.

@OmarTawfik OmarTawfik merged commit c705032 into dotnet:master Feb 13, 2018
A-And pushed a commit to A-And/corefx that referenced this pull request Feb 21, 2018
…tnet#1… (dotnet#26744)

* Added tests for Microsoft.VisualBasic.CompilerServices.Conversions #14344

* added tests for ToBoolean fro Object
@karelz karelz added this to the 2.1.0 milestone Mar 10, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…tnet/corefx#1… (dotnet/corefx#26744)

* Added tests for Microsoft.VisualBasic.CompilerServices.Conversions dotnet/corefx#14344

* added tests for ToBoolean fro Object


Commit migrated from dotnet/corefx@c705032
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants