예제 #1
0
        public void MappingMatcher_FindBestMatch_WhenNoMappingsDefined_ShouldReturnNull()
        {
            // Assign
            var request = new RequestMessage(new UrlDetails("http://localhost/foo"), "GET", "::1");

            // Act
            var result = _sut.FindBestMatch(request);

            // Assert and Verify
            Check.That(result).IsNull();
        }
예제 #2
0
        public void MappingMatcher_FindBestMatch_WhenNoMappingsDefined_ShouldReturnNull()
        {
            // Assign
            var request = new RequestMessage(new UrlDetails("http://localhost/foo"), "GET", "::1");

            // Act
            var result = _sut.FindBestMatch(request);

            // Assert
            result.Match.Should().BeNull();
            result.Partial.Should().BeNull();
        }