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);
        }
    }
}
