Fix UT, fix Tests.csproj, move UT file to proper folder #184

Closed
alexis.drai wants to merge 1 commits from fix-dgmgrut into test_dice_group_manager
Owner

Here is my proposed fix.

You can simply use Assert.Equal from Xunit to compare to IEnumerables. It'll just use A.Get(i).Equals(B.Get(i)) or something like that

For test methods with a Fact annotation, you should not use arguments. Those will be useful for theories.

In general, I believe that if you take all the unit tests from GameManager, and translate the method signatures and bodies for DiceGroups ( KeyValuePair<string, IEnumerable<Die>> ), you'll be just fine.

Here is my proposed fix. You can simply use `Assert.Equal` from Xunit to compare to `IEnumerable`s. It'll just use `A.Get(i).Equals(B.Get(i))` or something like that For test methods with a `Fact` annotation, you should not use arguments. Those will be useful for theories. In general, I believe that if you take all the unit tests from GameManager, and translate the method signatures and bodies for DiceGroups ( `KeyValuePair<string, IEnumerable<Die>>` ), you'll be just fine.
alexis.drai added 1 commit 2 years ago
continuous-integration/drone/push Build is passing Details
781d77fda3
Fix UT, fix Tests.csproj, move UT file to proper folder
alexis.drai requested review from mohammad_zafir.jeeawody 2 years ago
alexis.drai closed this pull request 1 year ago
alexis.drai removed review request for mohammad_zafir.jeeawody 1 year ago
All checks were successful
continuous-integration/drone/push Build is passing
Please reopen this pull request to perform a merge.
Sign in to join this conversation.
Loading…
There is no content yet.