Ancestry.Daisy.Tests.Daisy.Unit.Language.WhitespaceEaterTests.ItDoesNotAllowMoreThanOneTabbingLevelIncreaseAtATime C# (CSharp) Method

ItDoesNotAllowMoreThanOneTabbingLevelIncreaseAtATime() private method

        public void ItDoesNotAllowMoreThanOneTabbingLevelIncreaseAtATime()
        {
            var sut = new WhitespaceEater();
            sut.Eat("\t", 0);
            sut.Eat("a", 1);
            Assert.Catch<InconsistentWhitespaceException>(() => sut.Eat("\t\tb", 2));
        }