kontent-ai / model-generator-net

Kontent.ai .NET model generator.
https://www.nuget.org/packages/Kontent.Ai.ModelGenerator
MIT License
17 stars 19 forks source link

Base Class and Type Provider tests refactoring #71

Closed Simply007 closed 6 years ago

Simply007 commented 6 years ago

I have gone through the tests in files:

Most important change is that I have removed regular expressions for striping whitespaces (new lines character) and set up equals method to ignore whitespaces and new line characters when checking equality:

Then I have switched the order of parameters

Other commits are just some code polishing:

We have been discussing, that git configuration could influence how does the Equals work for xunit (https://github.com/Kentico/cloud-generators-net/pull/70).

I have decided to not use the workaround with the regular expression. The Equals method should ignore line endings - if it doesn't, it is a bug of xunit and it needs to be submitted and resolved.