Files
QuantEngineByItz/src/dotnet/QuantEngine.Core.Tests/AntiChasingCalculatorTests.cs
T
kjh2064 d1278b26ee
Deploy to Production / Build Release Package (push) Failing after 17s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 5s
Deploy to Production / Deploy to Production Server (push) Has been skipped
Deploy to Production / Post-Deployment Checks (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 38s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 2m19s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
test(dotnet): add 32 xUnit tests for domain calculators (WBS-10.2)
2026-06-29 09:59:56 +09:00

23 lines
717 B
C#

using Xunit;
using QuantEngine.Core.Domain;
namespace QuantEngine.Core.Tests
{
public class AntiChasingCalculatorTests
{
[Theory]
[InlineData(1.0, "CLEAR", "PASS")]
[InlineData(2.0, "PULLBACK_WAIT", "WAIT")]
[InlineData(4.0, "BLOCK_CHASE", "BLOCKED")]
public void ComputeAntiChasing_Velocities_ReturnExpectedVerdictAndStatus(
double velocity,
string expectedVerdict,
string expectedStatus)
{
var res = AntiChasingCalculator.ComputeAntiChasing(velocity);
Assert.Equal(expectedVerdict, res.AntiChasingVerdict);
Assert.Equal(expectedStatus, res.AntiChasingVelocityStatus);
}
}
}