namespace ByteBard.AsyncAPI.Tests.Validation
{
    using ByteBard.AsyncAPI.Validations;
    using NUnit.Framework;

    public class ValidationRuleSetTests
    {
        [Test]
        public void V2_DefaultRuleSet_ReturnsTheCorrectRules()
        {
            // Arrange
            var ruleSet = new ValidationRuleSet();

            // Act
            var rules = ruleSet.Rules;

            // Assert
            Assert.NotNull(rules);
            Assert.IsEmpty(rules);
        }

        [Test]
        public void V2_DefaultRuleSet_PropertyReturnsTheCorrectRules()
        {
            // Arrange & Act
            var ruleSet = ValidationRuleSet.GetDefaultRuleSet();
            Assert.NotNull(ruleSet); // guard

            var rules = ruleSet.Rules;

            // Assert
            Assert.NotNull(rules);
            Assert.IsNotEmpty(rules);

            // Update the number if you add new default rule(s).
            Assert.AreEqual(29, rules.Count);
        }
    }
}
