-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP to fix tests: pass Factions fixture during testing
- Loading branch information
Konrad Jamrozik
committed
Jun 14, 2024
1 parent
b113e78
commit c899991
Showing
4 changed files
with
36 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using UfoGameLib.Lib; | ||
using UfoGameLib.Model; | ||
|
||
namespace UfoGameLib.Tests; | ||
|
||
public static class FactionFixtures | ||
{ | ||
public static Factions SingleFaction(RandomGen randomGen) => new( | ||
[ | ||
// Note: need to ensure here that IDs are consecutive, and from zero. | ||
Faction.Init(randomGen, id: 0, "Black Lotus cult", power: 200, powerIncrease: 5), | ||
]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters