Commit Graph

56 Commits

Author SHA1 Message Date
Oliver Booth b5227f58d3
Code cleanup for X10D.Tests 2022-06-01 15:35:00 +01:00
Oliver Booth fd53b41610
Move EnumerableTests to Collections namespace 2022-05-02 22:27:21 +01:00
Oliver Booth 5d3a82a33a
Add IEnumerable<T>.For and ForEach (#50) 2022-05-01 22:25:37 +01:00
Oliver Booth a6139a5720
Migrate string extensions to appropriate namespaces (#7)
Introduces more tests
2022-04-30 13:08:39 +01:00
Oliver Booth 2547d4a227
Add comprehensive math tests
Introduces extension methods for decimal
2022-04-30 10:15:36 +01:00
Oliver Booth 8d4f82e964
Remove Lerp extension methods
These extension methods lead to confusion with the parameter order, and so the advice now is to simply use MathUtility.Lerp directly
2022-04-29 23:24:59 +01:00
Oliver Booth dc3de3816e
Add T.RepeatValue(int) 2022-04-29 11:16:44 +01:00
Oliver Booth 5251408b15
Rename local IEnumerable to "enumerable" 2022-04-29 11:14:33 +01:00
Oliver Booth d672032c44
[ci skip] Remove redundant GetBytes tests in /Core 2022-04-26 11:06:17 +01:00
Oliver Booth 5a88a06551
[ci skip] Move AsArrayValue tests to CoreTests 2022-04-26 11:04:09 +01:00
Oliver Booth f7f3ea71bb
Append "Value" to AsArray/AsEnumerable, to reduce risk of LINQ collision 2022-04-26 10:45:18 +01:00
Oliver Booth 38ae5b0b7e
Move EnumExtensions to Core namespace (#7) 2022-04-26 10:22:59 +01:00
Oliver Booth 433d365a89
Move IO-related bool extensions to IO namespace (#7) 2022-04-25 22:26:22 +01:00
Oliver Booth 2ead3cbb8a
Add exhaustive Random tests
Introduces NextInt16 and NextByte
2022-04-25 22:14:11 +01:00
Oliver Booth c4abef7be6
Move IO related methods to IO namespaces (#7)
Also renames more tests to be more meaningful
2022-04-25 17:09:49 +01:00
Oliver Booth b4f09e0a94
Move math-related extensions to Math namespace (#7) 2022-04-24 11:04:30 +01:00
Oliver Booth 199b82b9a6
Fix nullability of AsEnumerable return type 2022-04-24 10:29:04 +01:00
Oliver Booth 30e925cdb0
Move additional methods into child namespaces (#7) 2022-04-24 10:09:56 +01:00
Oliver Booth 346fc72d5e
Move text-based char extensions to Text namespace (#7) 2022-04-23 12:37:49 +01:00
Oliver Booth 224e465915
Move math-related extensions to Math namespace (#7) 2022-04-23 11:14:20 +01:00
Oliver Booth cfa27e0b4f
Move GetHash to child namespace (#7)
Also introduces TryWriteHash
2022-04-22 12:16:34 +01:00
Oliver Booth ae24d94da2
Add tests for AsArray/AsEnumerable 2022-04-22 09:42:58 +01:00
Oliver Booth a5df7a9ee8
Move Extensions to Core namespace 2022-04-22 09:28:03 +01:00
Oliver Booth 6a1f64f042
Move IEnumerable.Product tests to Linq namespace (#7) 2022-04-22 09:11:18 +01:00
Oliver Booth 0fb01726db
Add tests for Enumerable/List 2022-04-21 22:35:06 +01:00
Oliver Booth 4096265006
Move LINQ-inspired methods to child namespaces (#7) 2022-04-21 22:27:24 +01:00
Oliver Booth ad36b915bc
[ci skip] Import namespaces for tests 2022-04-21 18:13:53 +01:00
Oliver Booth 95020e0db0
Move math-related extensions to child namespace (#7) 2022-04-21 17:43:56 +01:00
Oliver Booth d9277dbbf6
Add tests for ComplexInfinity 2022-04-21 12:44:50 +01:00
Oliver Booth 9b9b75ae5b
Add Sqrt tests 2022-04-21 12:20:19 +01:00
Oliver Booth 4855ae8bf2
[ci skip] Use file-scoped namespaces for tests 2022-04-21 12:15:29 +01:00
Oliver Booth 3a58ed88c9
Add AsArray/AsEnumerable (#47) 2022-04-20 23:14:16 +01:00
Oliver Booth af9449935f
Fix null input for WithAlternative test 2022-04-20 19:32:34 +01:00
Oliver Booth 85becd2415
Add Array.Fill 2022-04-20 19:27:06 +01:00
Oliver Booth 778d8c6cf1
Add Deg<->Rad tests 2022-04-20 18:48:43 +01:00
Oliver Booth facc0834f0
Separate unwrapped Enum.Next/Previous to Unchecked overloads 2022-04-20 18:16:59 +01:00
Oliver Booth 3aaee23ebe
Add (some) missing tests 2022-04-20 17:33:02 +01:00
Oliver Booth 2128814db1
[ci skip] Use explicit type in tests 2022-04-20 17:31:16 +01:00
Oliver Booth a645f56204
[ci skip] Add test for Enumerable.Shuffled 2022-04-20 16:47:15 +01:00
Oliver Booth 66e7e79561
Rename Clusivity enum to InclusiveOptions
https://sonarcloud.io/project/issues?fileUuids=AX9gUgFivY1Q2LeuiUva&pullRequest=43&id=oliverbooth_X10D&open=AX75E353Zn_cGN5aPZcQ
2022-04-20 16:35:44 +01:00
Oliver Booth 374933e45e
Add FileInfo.GetHash<T>
Wraps Stream.GetHash<T>, but saves the caller having to OpenRead themselves
2022-04-20 14:29:45 +01:00
Oliver Booth 3c60340bde
Add Product extension method
Computes the element-wise product, optionally with a transformation delegate
2022-04-20 14:07:16 +01:00
Oliver Booth 5509305c5a
Update string.With*Alternative tests 2022-03-06 17:36:58 +00:00
Oliver Booth 1c0768c472 Remove legacy tests 2022-02-14 16:25:59 +00:00
Oliver Booth 64bcb34a11 Introduce Between clusivity 2022-02-14 16:24:14 +00:00
Oliver Booth 6c27227c3e Remove char.Random test 2022-02-14 16:04:57 +00:00
Oliver Booth e0e7965557 Remove old tests 2022-02-14 16:03:55 +00:00
Oliver Booth 54848848ac Enable implicit usings in tests csproj 2022-02-14 12:20:55 +00:00
Oliver Booth 1205290ab4
Fix typos in IsPrimeTests xmldoc 2021-07-20 14:51:09 +01:00
Oliver Booth 09e126fa08
Add IsPrime tests 2021-07-20 14:47:33 +01:00