ShittyLabs / ShittyLINQ

The shitty version of LINQ.
MIT License
12 stars 29 forks source link

Add ToArray method and tests #69

Open jreina opened 6 years ago

jreina commented 6 years ago

https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.toarray?view=netcore-2.1

roopbiswas commented 6 years ago

I would like to work on this. Can you please elaborate what the issue requires?

jreina commented 6 years ago

The issue requires the creation of a new method, ToArray following the existing convention for methods in the project (new file at ./ShittyLINQ/ToArray.cs), as well as the addition of a set of tests for the new methods. Again, the tests should follow the same convention as existing tests and should verify correctness when used properly, and also that the proper exception is thrown when used improperly (i.e. source is null). The newly added method should have the type signature and behavior described in the specification here