public void ObjectLinkContainer_add_items_ok()
        {
            // Arrange

            // Act
            var sut = new ObjectLinkContainer();

            sut.GetLinks().Add("linkname", new SimpleLink {
                Href = "url"
            });

            // Assert
            Assert.Equal("url", ((ISimpleLink)sut.GetLinks()["linkname"]).Href);
        }
        public void ObjectLinkContainer_using_ctor_ok()
        {
            // Arrange

            // Act
            var sut = new ObjectLinkContainer();

            // Assert
            Assert.Empty(sut.GetLinks());
        }
示例#3
0
 public ILinkData GetLinks()
 {
     return(_linkContainer.GetLinks());
 }