test(dotnet): add 32 xUnit tests for domain calculators (WBS-10.2)
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
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
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user