/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Middleware/Rewrite/test/PatternSegments/ToLowerSegmentTests.cs
28 строк
887 B
Shreyas Jejurkar
chore : Remove unwanted `using` statement (#39176)
02 янв 2022, 17:39
Не верифицирован
02 янв 2022, 17:39
c85baf8
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Rewrite.PatternSegments; namespace Microsoft.AspNetCore.Rewrite.Tests.PatternSegments; public class ToLowerSegmentTests { [Theory] [InlineData("Hello", "hello")] [InlineData("WHAT", "what")] [InlineData("hey", "hey")] public void ToLower_AssertLowerCaseWorksAppropriately(string input, string expected) { // Arrange var pattern = new Pattern(new List<PatternSegment>()); pattern.PatternSegments.Add(new LiteralSegment(input)); var segement = new ToLowerSegment(pattern); var context = new RewriteContext(); // Act var results = segement.Evaluate(context, null, null); // Assert Assert.Equal(expected, results); } }