public void TestValidateDepthFromToWithInvalidTo()
        {
            // Arrange
            var header = new Header
            {
                Name     = "Parent",
                Depth    = -1,
                From     = 0,
                To       = 4,
                Children = new List <Header>
                {
                    new Header
                    {
                        Name  = "Child",
                        Depth = 0,
                        From  = 0,
                        To    = 2,
                    },
                    new Header
                    {
                        Name  = "Child",
                        Depth = 0,
                        From  = 2,
                        To    = 5,
                    }
                }
            };

            // Act
            HeaderValidator.ValidateDepthFromTo(header, -1);
        }
        public void TestValidateDepthFromToWithInvalidFromTo()
        {
            // Arrange
            var header = new Header
            {
                Name = "Parent",
                From = 1,
                To   = 0,
            };

            // Act
            HeaderValidator.ValidateDepthFromTo(header, 1);
        }