Open-Systems-Pharmacology / OSPSuite.BDDHelper

Helper functions for BDD Development used in the Open Systems Pharmacology Suite
Other
0 stars 2 forks source link

Considered FluentAssertions #10

Open jfoshee opened 5 years ago

jfoshee commented 5 years ago

Hello, I applaud your work and that you are developing in the open. 👍 However, I have to wonder if you are unaware of FluentAssertions. It is compatible with .NET Framework (classic) and .NET Standard/Core. It supports a multitude of testing frameworks. And the tests read behaviorally similarly to your example tests. Finally, it is very mature.
I hope you don't take this negatively; I don't blame anyone for writing the code they enjoy writing. I merely want to make sure you are aware of that project in case it saves you some time. Best, Jacob

msevestre commented 5 years ago

@jfoshee Thanks for reaching out and for the kind words

Very interesting project. Would we start again, we would probably use it as our intent is not to reinvent the wheel.

We open sourced BDDHelperl a few years ago but the code was in fact written even before FluentAssertions was created!

Our goal was to wrap the Unittest framework so that we would not have to change everything if we decided to change it. And in fact, we went from MbBunit to xUnit and now Nunit.

It is tailored to our needs. We can add assertions as we need them, especially regarding Mathematical comparisons with relative tolerances etc.. (see here). It's probably all doable with FluentAssertions to be honest. The thoughts however of migrating over 10000 tests to this lib is enough to make me want to forget about it :)

Something to keep in mind for the future.

Thanks again, Michael