✅ 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
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'fix-dgmgrut'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Here is my proposed fix.
You can simply use
Assert.Equal
from Xunit to compare toIEnumerable
s. It'll just useA.Get(i).Equals(B.Get(i))
or something like thatFor 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.