Commit Graph

12 Commits

Author SHA1 Message Date
Dean Herbert 6e0801b852 Fix incorrect existing test case 2021-06-22 17:41:27 +09:00
Dean Herbert c4fde635c6 Ensure duplicate mods cannot be defined 2021-06-22 17:41:20 +09:00
Dean Herbert 5933e0d2d9 Change `CheckCompatibleSet` to never deselect the current candidat when checking incompatibility 2021-06-18 13:17:32 +09:00
Bartłomiej Dach c9facf70f9 Use conditional nullability attribute
As it turns out, C# 8 provides an attribute that allows annotating that
an `out` parameter's nullability depends on the method's return value,
which is exactly what is desired here.
2021-05-15 00:09:34 +02:00
Dean Herbert 8e70a50af0 Remove unused using statement 2021-02-02 19:22:13 +09:00
smoogipoo 0a9861d0ab Use TestCaseSource and add multi-mod test 2021-02-02 18:51:13 +09:00
smoogipoo 5881b8be96 Merge branch 'add-mod-utils' into mod-consistency-function 2021-02-02 18:41:35 +09:00
smoogipoo 9955e02898 Make more tests use the custom mod classes
For safety purposes... In implementing the previous tests, I found that
using mod.Object.GetType() can lead to bad assertions since the same
ModProxy class is used for all mocked classes.
2021-02-02 18:33:14 +09:00
smoogipoo 1df412a03c Fix incorrect handling of multi-mod incompatibilities 2021-02-02 18:31:08 +09:00
smoogipoo 7c29386717 Add failing tests 2021-02-02 18:01:33 +09:00
Dean Herbert 80d88024d6 Add basic test coverage of CheckValidForGameplay function 2021-02-02 14:13:50 +09:00
smoogipoo b9832c1b2d Add ModUtils class for validating mod usages 2021-02-01 19:37:24 +09:00