Implement deterministic simulation spine
This commit is contained in:
19
tests/SideScrollerGame.Sim.Tests/SimulationConfigTests.cs
Normal file
19
tests/SideScrollerGame.Sim.Tests/SimulationConfigTests.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using SideScrollerGame.Sim.Verification;
|
||||
|
||||
namespace SideScrollerGame.Sim.Tests;
|
||||
|
||||
public sealed class SimulationConfigTests
|
||||
{
|
||||
[Fact]
|
||||
public void Default_UsesRepositoryDefaults()
|
||||
{
|
||||
Assert.Equal(SimulationDefaults.DefaultTicksPerSecond, SimulationConfig.Default.TicksPerSecond);
|
||||
Assert.Equal(VerificationMode.None, SimulationConfig.Default.VerificationMode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Constructor_RejectsNonPositiveTicksPerSecond()
|
||||
{
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => new SimulationConfig(0, VerificationMode.None));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user