python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Cannot read dynamic properties with FluentAssertions
I am using XUnit and fluentassertions in c sharp for my unit tests. Below is where I get a dynamic type, convert a dynamic object to that dynamic type and try to do an assertion:
var dynamicTy...
avdeveloper
Votes: 0
Answers: 2
Unit test of the second method call
I have a unit test where I am using Moq and Fluent Assertions:
[Fact]
public void GetSymbols_ShouldSetSucceedToTrue_WhenSecondAttemptSucceed()
{
string selectedFileName = "testFileName.txt&qu...

Qwertyluk
Votes: 0
Answers: 1
Assert when property has NullValueHandling.Ignore
On my endpoint's response I need to omit a property if its value is null , so I have tagged the prop with the [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] tag.
So, with the tag on the ...
Andres Ospina
Votes: 0
Answers: 2
FluentAssertions for equality of objects graph with array - approximate equality
I am trying to write a set of tests for an API which returns a result in the following form
{
"metrics": [
{
"key": "Metric1",
"portfolios": [...

Jamiec
Votes: 0
Answers: 1