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

DecreaseIndentation() public method

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

Same methods

IndentingTextWriter::DecreaseIndentation ( Int32 decreaseBy ) : void

Usage Example

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

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