StatePrinting.Configurations.Configuration.SetIndentIncrement C# (CSharp) Метод

SetIndentIncrement() публичный Метод

Set the definition of the newline. The default configuration is a Environment.NewLine
public SetIndentIncrement ( string indention ) : Configuration
indention string
Результат Configuration
        public Configuration SetIndentIncrement(string indention)
        {
            if (indention == null)
                throw new ArgumentNullException("indention");
            IndentIncrement = indention;

            return this;
        }

Usage Example

Пример #1
0
        public void SettingNullValues()
        {
            var sut = new Configuration();
            Assert.Throws<ArgumentNullException>(() => sut.SetCulture(null));
            Assert.Throws<ArgumentNullException>(() => sut.SetIndentIncrement(null));
            Assert.Throws<ArgumentNullException>(() => sut.SetNewlineDefinition(null));
            Assert.Throws<ArgumentNullException>(() => sut.SetOutputFormatter(null));
            Assert.Throws<ArgumentNullException>(() => sut.SetAreEqualsMethod(null));

            Assert.Throws<ArgumentNullException>(() => sut.Add((IFieldHarvester)null));
            Assert.Throws<ArgumentNullException>(() => sut.Add((IValueConverter)null));

            Assert.Throws<ArgumentNullException>(() => sut.Test.SetAreEqualsMethod(null));
            Assert.Throws<ArgumentNullException>(() => sut.Test.SetAutomaticTestRewrite(null));
        }