Commit Graph

1219 Commits

Author SHA1 Message Date
Oliver Booth cfa2eb7fa6
Use automatic versioning 2022-04-20 12:18:40 +01:00
Oliver Booth e6364716a6
[github actions] update workflows, introduce nightly builds
Packages are pushed to both GitHub and nuget.org
2022-04-20 12:16:06 +01:00
Oliver Booth 5509305c5a
Update string.With*Alternative tests 2022-03-06 17:36:58 +00:00
Oliver Booth 4f99763a0a
Remove string.WithAlternative
Yeah... so I already had this method which accepted a bool, forgot about that.

But now it's separated into more meaningfully-named methods. So...

https://www.youtube.com/watch?v=oJimiVFCjJ0
2022-03-06 17:32:53 +00:00
Oliver Booth 45804c2da6
Add string.With*Alternative
Serves as a way to specify a custom alternative in cases where AsNullIf* does not satisfy
2022-03-06 17:31:22 +00:00
Oliver Booth c151a9c754
(#42) throw on null value for string.Base64*code 2022-03-06 17:29:26 +00:00
Oliver Booth 3e11a209e7
(#15) Remove "Returns" from <returns> for string.Repeat 2022-03-06 17:28:12 +00:00
Oliver Booth b2cf22efdf
(#15) Improve xmldoc for string.AsNullIfEmpty/WhiteSpace 2022-03-06 17:27:31 +00:00
Oliver Booth 1d74f7f896
Add Stryker tool
https://stryker-mutator.io/
2022-02-22 14:39:54 +00:00
Oliver Booth f9b4c56f05 Remove X10D.Unity project from repo 2022-02-14 16:50:07 +00:00
Oliver Booth 191cbbe97c (#45) Use file-scoped namespaces 2022-02-14 16:42:49 +00:00
Oliver Booth c014b7d410 (#14) Use explicit type
Use implicit using
2022-02-14 16:32:30 +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 0e8af01a9d Remove bool->unsigned methods 2022-02-14 16:03:38 +00:00
Oliver Booth 334e706b68 (#46) Add string.IsPalindrome 2022-02-14 15:57:29 +00:00
Oliver Booth 7fd1b88acf (#14) Use explicit type 2022-02-14 15:53:50 +00:00
Oliver Booth 7c05af1fde Remove To/From boolean methods
Consumers should cast to IConvertible and call already-existing method
2022-02-14 15:52:03 +00:00
Oliver Booth a8087771c8 Swap via deconstruction 2022-02-14 15:45:52 +00:00
Oliver Booth a73ec546d1 (#14) Use explicit type where non-evident 2022-02-14 15:45:28 +00:00
Oliver Booth 3a42b4cac9 Format csproj 2022-02-14 13:02:30 +00:00
Oliver Booth b139d06a33 Remove FxCop in favour of built in analyzer 2022-02-14 12:59:41 +00:00
Oliver Booth a47bcbeaa8 Bump FxCop to 3.3.2 2022-02-14 12:21:55 +00:00
Oliver Booth 54848848ac Enable implicit usings in tests csproj 2022-02-14 12:20:55 +00:00
Oliver Booth 375a382e1b Bump to .NET 6, bump dependency versions 2022-02-14 12:18:35 +00:00
Oliver Booth 093a504467 Remove CA ruleset enforcement 2022-02-14 12:17:49 +00:00
Oliver Booth 3257428fad Enable preview features in Tests csproj 2022-02-14 12:17:08 +00:00
Oliver Booth 920fadf639 Remove X10D.Unity dependency from Tests csproj 2022-02-14 12:16:28 +00:00
Oliver Booth 3592ec555e Remove X10D.Unity from solution 2022-02-14 12:13:29 +00:00
Oliver Booth 62902c33e4 Bump CI to .NET 6 2022-02-14 12:10:59 +00:00
Oliver Booth 5ecfd5236f (#14) Only use var when apparent 2022-02-14 12:09:19 +00:00
Oliver Booth 5ec4e06d9d (#15) Improve xmldoc bool returns
Changed ",or false otherwise" to "; otherwise, false."
2022-02-14 12:07:30 +00:00
Oliver Booth 64cadbe87d Use implicit usings in BooleanExtensions.Unsigned.cs 2022-02-14 12:02:22 +00:00
Oliver Booth 920750a207 Enable implicit usings 2022-02-14 12:00:37 +00:00
Oliver Booth 14a0f2fdd4 Enable preview features
System.Runtime.Experimental preview added as private dependency
2022-02-13 23:33:31 +00:00
Oliver Booth 2193e6b92c (#43) (#45) Bump to .NET 6 / C# 10 2022-02-13 23:32:04 +00:00
Oliver Booth 803032a567 Add int.Mod(int) and circular shifting 2022-02-13 19:40:38 +00:00
Oliver Booth 7a0aae3bd5
Use bit check rather than modulo for IsEven 2021-08-31 15:49:43 +01:00
Oliver Booth 0bafb64ecb
(#15) Fix typo in short.IsEven xmldoc 2021-08-31 15:48:40 +01:00
Oliver Booth 1ee5b8ef64
(#14) Use explicit type (#42) Ensure readable stream 2021-08-31 15:47:12 +01:00
Oliver Booth 5e021b703b
(#14) Don't use var elsewhere 2021-08-31 15:43:43 +01:00
Oliver Booth fd9048d4ab
Use .NET 5 SDK 2021-08-31 15:43:18 +01:00
Oliver Booth f268cf5b02
(#44) Replace string.Randomize overloads with optional parameter 2021-07-20 17:32:05 +01:00
Oliver Booth 4bf295a028
Call generic Enum.Parse<T> for .NET >= 5 2021-07-20 17:29:57 +01:00
Oliver Booth 3bbf689db4
Add Enum constraint to string.EnumParse<T> 2021-07-20 17:29:26 +01:00
Oliver Booth af3dfaa623
(#14) Pattern-match IsEnum property on typeof(T) 2021-07-20 17:25:52 +01:00
Oliver Booth 3d44132865
Use double parameter for double.ToBoolean 2021-07-20 17:20:35 +01:00
Oliver Booth 45eb0ef415
Add IReadOnlyCollection<T>.Split(int)
Yields the same results as IEnumerable<T>.Split(int), except is able to
avoid a hidden allocation with the benefit of knowing the collection
size ahead of time
2021-07-20 17:18:15 +01:00