/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Core/CodeAnalysisTest/Collections/SimpleElementImmutablesTestBase.cs
25 строк
1 KB
Sam Harwell
Update tests for use with ImmutableSegmentedList<T>
28 июн 2021, 00:32
28 июн 2021, 00:32
21304ad
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // NOTE: This code is derived from an implementation originally in dotnet/runtime: // https://raw.githubusercontent.com/dotnet/runtime/v6.0.0-preview.5.21301.5/src/libraries/System.Collections.Immutable/tests/SimpleElementImmutablesTestBase.cs // // See the commentary in https://github.com/dotnet/roslyn/pull/50156 for notes on incorporating changes made to the // reference implementation. using System.Collections.Generic; using System.Linq; namespace Microsoft.CodeAnalysis.UnitTests.Collections { public abstract class SimpleElementImmutablesTestBase : ImmutablesTestBase { protected abstract IEnumerable<T> GetEnumerableOf<T>(params T[] contents); protected IEnumerable<T> GetEnumerableOf<T>(IEnumerable<T> contents) { return GetEnumerableOf(contents.ToArray()); } } }