예제 #1
0
        public void MapsAllArgumentsToProperties()
        {
            var testee = new SelfLink("link/to/self/", "Title");

            testee.Rel.Should().Be("self");
            testee.Href.Should().Be("link/to/self/");
            testee.Title.Should().Be("Title");
        }
예제 #2
0
        public void MapsRequiredArgumentsToProperties()
        {
            var testee = new SelfLink("link/to/self/");

            testee.Rel.Should().Be("self");
            testee.Href.Should().Be("link/to/self/");
            testee.Title.Should().BeNullOrEmpty();
        }
예제 #3
0
        public void MapsAllArgumentsToProperties()
        {
            var testee = new SelfLink("link/to/self/", "Title");

            testee.Rel.Should().Be("self");
            testee.Href.Should().Be("link/to/self/");
            testee.Title.Should().Be("Title");
        }
예제 #4
0
        public void MapsRequiredArgumentsToProperties()
        {
            var testee = new SelfLink("link/to/self/");

            testee.Rel.Should().Be("self");
            testee.Href.Should().Be("link/to/self/");
            testee.Title.Should().BeNullOrEmpty();
        }
예제 #5
0
        public void IsLink()
        {
            var testee = new SelfLink("link/to/self/");

            testee.Should().BeAssignableTo <Link>();
        }
예제 #6
0
        public void IsLink()
        {
            var testee = new SelfLink("link/to/self/");

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