public void ExplictConstruction() { string[] expectedDirectories = { @"\\abc", @"\\def", @"\\ghi", @"\\jkl" }; XmlDocCommentDirectoryElementCollection collection = new XmlDocCommentDirectoryElementCollection(expectedDirectories); Assert.That( collection.Cast <XmlDocCommentDirectoryElement>().Select(e => e.Name), Is.EquivalentTo(expectedDirectories)); }
public void ExplictConstruction() { string[] expectedDirectories = { @"\\abc", @"\\def", @"\\ghi", @"\\jkl" }; XmlDocCommentDirectoryElementCollection collection = new XmlDocCommentDirectoryElementCollection(expectedDirectories); Assert.That( collection.Cast<XmlDocCommentDirectoryElement>().Select(e => e.Name), Is.EquivalentTo(expectedDirectories)); }
public void DefaultConstruction() { XmlDocCommentDirectoryElementCollection collection = new XmlDocCommentDirectoryElementCollection(); Assert.That(collection, Is.Empty); }