mirror of
https://github.com/edgegamers/Gangs.git
synced 2025-12-05 20:40:30 -08:00
* Normalize paths * Update workflows * Update workflows * Update workflows * Update csproj build dirs * Update csproj build dirs * Fix bugs * Directories are hard * Dont zip zip * Rename to support CS# * Fix nightly file name * Debug * Try referencing class directly * Update dependabot * Update gitignore and command tests * More tests: * Basic gang creation working
26 lines
703 B
C#
26 lines
703 B
C#
using System.Collections;
|
|
using Commands;
|
|
using Commands.gang;
|
|
using GangsAPI;
|
|
using GangsAPI.Services;
|
|
using Mock;
|
|
|
|
namespace GangsTest.Commands;
|
|
|
|
public class CommandTestData : IEnumerable<object[]> {
|
|
private static readonly IGangManager manager = new MockGangManager();
|
|
|
|
private readonly IBehavior[] behaviors = [
|
|
new CreateCommand(manager), new HelpCommand(), new GangCommand(manager)
|
|
];
|
|
|
|
public CommandTestData() {
|
|
foreach (var behavior in behaviors) behavior.Start();
|
|
}
|
|
|
|
public IEnumerator<object[]> GetEnumerator() {
|
|
return behaviors.Select(behavior => (object[]) [behavior]).GetEnumerator();
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); }
|
|
} |