iSynaptic.Commons.Text.IndentingTextWriter.IncreaseIndentation C# (CSharp) Method

IncreaseIndentation() public method

public IncreaseIndentation ( ) : void
return void
        public void IncreaseIndentation()
        {
            IncreaseIndentation(1);
        }

Same methods

IndentingTextWriter::IncreaseIndentation ( Int32 increaseBy ) : void

Usage Example

Esempio n. 1
0
        public void IncreasingIndentation_ByMustBeGreaterThanZero()
        {
            var sw = new StringWriter();
            var iw = new IndentingTextWriter(sw, "  ");

            Assert.Throws <ArgumentOutOfRangeException>(() => iw.IncreaseIndentation(0));
            Assert.Throws <ArgumentOutOfRangeException>(() => iw.IncreaseIndentation(-42));
        }
All Usage Examples Of iSynaptic.Commons.Text.IndentingTextWriter::IncreaseIndentation