public void ExplicitConstruction() { string expectedName = @"C:\test-directory"; XmlDocCommentDirectoryElement element = new XmlDocCommentDirectoryElement(expectedName); Assert.That(element.Name, Is.SameAs(expectedName)); }
public void GetElementKey() { XmlDocCommentDirectoryElement element = new XmlDocCommentDirectoryElement(ExpectedDirectoryName); object result = GetMethod("GetElementKey", new Type[] { typeof(XmlDocCommentDirectoryElement) }) .Invoke(new XmlDocCommentDirectoryElementCollection(), new object[] { element }); Assert.That(result, Is.Not.Null); Assert.That(result, Is.SameAs(element.Name)); }
public void DefaultConstruction() { XmlDocCommentDirectoryElement element = new XmlDocCommentDirectoryElement(); Assert.That(element.Name, Is.Empty); }
public void GetElementKey() { XmlDocCommentDirectoryElement element = new XmlDocCommentDirectoryElement(ExpectedDirectoryName); object result = GetMethod("GetElementKey", new Type[] { typeof(XmlDocCommentDirectoryElement) }) .Invoke(new XmlDocCommentDirectoryElementCollection(), new object[] { element }); Assert.That(result, Is.Not.Null); Assert.That(result, Is.SameAs(element.Name)); }