Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fluent Assertions : How to check for key value pair with out case

I have a dictionary of type Dictionary<string, object> which I am trying assert with Fluent Assertions. I need to check if it contains a key called "iss" and value "ABC". I need to do assert the "value" field without considering the case. Is it supported?

like image 931
Shetty Avatar asked Aug 31 '25 10:08

Shetty


1 Answers

dictionary.Should().ContainKey("iss").WhichValue.Should().BeEquivalentTo("abc");
like image 158
Dennis Doomen Avatar answered Sep 04 '25 04:09

Dennis Doomen