ApiExamples.ExEditableRange.IncorrectStructureException C# (CSharp) Метод

IncorrectStructureException() приватный Метод

private IncorrectStructureException ( ) : void
Результат void
        public void IncorrectStructureException()
        {
            Document doc = new Document();

            DocumentBuilder builder = new DocumentBuilder(doc);

            //Is not valid structure for the current document
            Assert.That(() => builder.EndEditableRange(), Throws.TypeOf<InvalidOperationException>());

            builder.StartEditableRange();
        }