question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: lower/upper case assertions

See original GitHub issue

Description

Please introduce lowercase and uppercase assertions for strings or chars, for example:

// Arrange
var input = "A";

// Act
var actual = input.ToUpper();

// Assert
actual.Should().BeUpper();
actual.Should().NotBeLower();

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jnyrupcommented, Jul 17, 2020

Culture invariance is still relevant to behave identically on a Turkey Test no matter the current culture on the testing machine.

1reaction
weitzhandlercommented, Jul 17, 2020

Or having an overload that supports BeUpper(CultureInfo), which can then be used with CultureInfo.InvariantCulture.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP method names: upper or lower case?
Method names are case-sensitive, and all registered methods are all upper-case. (and the W3C really doesn't matter here; what's relevant are ...
Read more >
Assertions
If you check "disable case sensitivity", mabl checks that the value matches what you expect without regard to what letters are in uppercase...
Read more >
grep lower case upper case sequence manipulation
Hi grep experts,. I'm trying to convert sequences of lower case character upper case character pattern to lower case <space> upper case.
Read more >
how to transform case (uppercase/lowercase) of a value in ...
Hi,. my problem is really simple for a basic feature. In variable context "foo" contains "bAr", I will transform case of value like...
Read more >
Formatting Keywords to UPPERCASE In Oracle SQL ...
SQL Developer's formatter can be configured to uppercase SQL keywords in the worksheet and editors. Access the Other page in the SQL ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found