meziantou / Meziantou.FluentAssertionsAnalyzers

MIT License
11 stars 5 forks source link

Add Assert.NotStrictEqual migration #8

Open inyutin-maxim opened 2 years ago

inyutin-maxim commented 2 years ago
GeoLocation result = new GeoLocation
                {
                    Latitude = 1.456789123,
                    Longitude = 1.987654123
                };
Assert.NotStrictEqual(new GeoLocation
                {
                    Latitude = 1.456789123,
                    Longitude = 1.987654123
                }, result);

Can be replaced with:

result.Should() .BeEquivalentTo(new GeoLocation
                {
                    Latitude = 1.456789123,
                    Longitude = 1.987654123
                }, options => options.WithoutStrictOrdering());
inyutin-maxim commented 2 years ago

This replacement incorrect working, i searching another solution