예제 #1
0
        public void ImplicitCast_ValidIndexer_SameReference()
        {
            SafeExecuteTest(
               NumberedDocPath,
               (doc) =>
               {
                   var expected = doc.MainDocumentPart.NumberingDefinitionsPart.Numbering;
                   var indexer = new NumberingIndexer(doc.MainDocumentPart.NumberingDefinitionsPart);
                   var target = (Numbering)indexer;

                   // Check references
                   Assert.AreSame(expected, target);
               });
        }
예제 #2
0
 public void Constructor_NullArgument_ThrowsException()
 {
     var target = new NumberingIndexer(null);
 }