示例#1
0
        public void MapsAllArgumentsToProperties()
        {
            var testee = new EditLink("link/to/resource/", "Title");

            testee.Rel.Should().Be("edit");
            testee.Href.Should().Be("link/to/resource/");
            testee.Title.Should().Be("Title");
        }
示例#2
0
        public void MapsRequiredArgumentsToProperties()
        {
            var testee = new EditLink("link/to/resource/");

            testee.Rel.Should().Be("edit");
            testee.Href.Should().Be("link/to/resource/");
            testee.Title.Should().BeNullOrEmpty();
        }
示例#3
0
        public void MapsAllArgumentsToProperties()
        {
            var testee = new EditLink("link/to/resource/", "Title");

            testee.Rel.Should().Be("edit");
            testee.Href.Should().Be("link/to/resource/");
            testee.Title.Should().Be("Title");
        }
示例#4
0
        public void MapsRequiredArgumentsToProperties()
        {
            var testee = new EditLink("link/to/resource/");

            testee.Rel.Should().Be("edit");
            testee.Href.Should().Be("link/to/resource/");
            testee.Title.Should().BeNullOrEmpty();
        }
示例#5
0
        public void IsLink()
        {
            var testee = new EditLink("link/to/resource/");

            testee.Should().BeAssignableTo<Link>();
        }
示例#6
0
        public void IsLink()
        {
            var testee = new EditLink("link/to/resource/");

            testee.Should().BeAssignableTo <Link>();
        }