30 lines
1014 B
C#
30 lines
1014 B
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.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Testing.xunit;
|
|
using Xunit;
|
|
|
|
namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
|
|
{
|
|
[Collection(IISTestSiteCollection.Name)]
|
|
public class FeatureCollectionTest
|
|
{
|
|
private readonly IISTestSiteFixture _fixture;
|
|
|
|
public FeatureCollectionTest(IISTestSiteFixture fixture)
|
|
{
|
|
_fixture = fixture;
|
|
}
|
|
|
|
[ConditionalTheory]
|
|
[InlineData("FeatureCollectionSetRequestFeatures")]
|
|
[InlineData("FeatureCollectionSetResponseFeatures")]
|
|
[InlineData("FeatureCollectionSetConnectionFeatures")]
|
|
public async Task FeatureCollectionTest_SetHttpContextFeatures(string path)
|
|
{
|
|
Assert.Equal("Success", await _fixture.Client.GetStringAsync(path + "/path" + "?query"));
|
|
}
|
|
}
|
|
}
|