aspnetcore/test/Microsoft.AspNetCore.Routin.../Matchers/BarebonesMatcherConformance...

60 lines
1.7 KiB
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using Xunit;
namespace Microsoft.AspNetCore.Routing.Matchers
{
public class BarebonesMatcherConformanceTest : MatcherConformanceTest
{
// Route values not supported
[Fact]
public override Task Match_SingleParameter()
{
return Task.CompletedTask;
}
// Route values not supported
[Fact]
public override Task Match_SingleParameter_TrailingSlash()
{
return Task.CompletedTask;
}
// Route values not supported
[Fact]
public override Task Match_SingleParameter_WierdNames()
{
return Task.CompletedTask;
}
// Route values not supported
[Theory]
[InlineData(null, null, null, null)]
public override Task Match_MultipleParameters(string template, string path, string[] keys, string[] values)
{
GC.KeepAlive(new object [] { template, path, keys, values });
return Task.CompletedTask;
}
// Route constraints not supported
[Fact]
public override Task Match_Constraint()
{
return Task.CompletedTask;
}
internal override Matcher CreateMatcher(params MatcherEndpoint[] endpoints)
{
var builder = new BarebonesMatcherBuilder();
for (int i = 0; i < endpoints.Length; i++)
{
builder.AddEndpoint(endpoints[i]);
}
return builder.Build();
}
}
}