Files
zfxaction26_1/tests/SideScrollerGame.Sim.Tests/DeterministicMathSmokeTests.cs

16 lines
342 B
C#

using SideScrollerGame.Sim.Math;
namespace SideScrollerGame.Sim.Tests;
public sealed class DeterministicMathSmokeTests
{
[Fact]
public void FixPointAverage_UsesSimulationMathTypes()
{
FixPoint16[] values = [new(1), new(2), new(3)];
var average = values.Average();
Assert.Equal(new(2), average);
}
}