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); }); }
public void Constructor_NullArgument_ThrowsException() { var target = new NumberingIndexer(null); }