Andrew Cooper

Results 7 comments of Andrew Cooper

See the common library for .Net at `00_Common/dotnet` for my rationale and implementation of this idea. I like the idea of having a set of functions with names/signatures that are...

Ruben, Essentially, yes. But the new methods should be present-tense - `BeAllLowerCase()` and `BeAllUpperCase()` (without the 'd'). It's an assertion about the contents of the string with no other context....

> Regarding the NotBeLowerCased() and NotBeUpperCased() changes suggested by @drewjcooper, wouldn't it be a better idea to also introduce new assertions for these, that asserts whether any character in a...

> would this suffice? I don't think so. The new semantics suggested are as you said for the first two methods: Method | Semantics ---|--- `BeLowerCased`|`subject` is equal to `subject.ToLowerInvariant()`...

I agree with @jnyrup's truth table and @dennisdoomen's additions. > So, will 漢字 return false to all? No. This is a string that doesn't change under `To(Lower|Upper)Invariant()` operations so, like...

@dennisdoomen @jnyrup Is it okay if I start on a PR for this?