/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Middleware/RequestDecompression/test/RequestDecompressionBuilderExtensionsTests.cs
22 строки
598 B
David Acker
Add Request Decompression middleware (#40279)
04 июн 2022, 01:22
Не верифицирован
04 июн 2022, 01:22
d5a539f
Код
Авторство
О чём код?
// 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.Builder; namespace Microsoft.AspNetCore.RequestDecompression.Tests; public class RequestDecompressionBuilderExtensionsTests { [Fact] public void UseRequestDecompression_NullApplicationBuilder_Throws() { // Arrange IApplicationBuilder builder = null; // Act + Assert Assert.Throws<ArgumentNullException>(() => { builder.UseRequestDecompression(); }); } }