Skip to content

Commit 480a26c

Browse files
committed
removed 'EnumerationReturnsReadOnlySpans'
1 parent 359ceda commit 480a26c

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

tests/unit-tests/Tests/ReadOnlySpan/Split/SplitAny/Tests.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ public static partial class ReadOnlySpanSplitTests
66
{
77
public sealed partial class SplitAny
88
{
9-
// [Fact]
10-
// public void EnumerationReturnsReadOnlySpans()
11-
// {
12-
//#pragma warning disable CS0183 // 'is' expression's given expression is always of the provided type
13-
// foreach(var span in "abaca".AsSpan().SplitAny(['b', 'c']))
14-
// {
15-
// Assert.True(span is ReadOnlySpan<char>);
16-
// }
17-
18-
// foreach(var span in "abaca".AsSpan().SplitAny(['b', 'c'], 10))
19-
// {
20-
// Assert.True(span is ReadOnlySpan<char>);
21-
// }
22-
//#pragma warning restore CS0183 // 'is' expression's given expression is always of the provided type
23-
// }
249

2510
[Fact]
2611
public void EmptySourceResultInEmptySpan()

tests/unit-tests/Tests/ReadOnlySpan/Split/SplitSequence/Tests.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ public static partial class ReadOnlySpanSplitTests
66
{
77
public sealed partial class SplitSequence
88
{
9-
// [Fact]
10-
// public void EnumerationReturnsReadOnlySpans()
11-
// {
12-
//#pragma warning disable CS0183 // 'is' expression's given expression is always of the provided type
13-
// foreach(var span in "abca".AsSpan().Split(['b', 'c']))
14-
// {
15-
// Assert.True(span is ReadOnlySpan<char>);
16-
// }
17-
18-
// foreach(var span in "abca".AsSpan().Split(['b', 'c'], 10))
19-
// {
20-
// Assert.True(span is ReadOnlySpan<char>);
21-
// }
22-
//#pragma warning restore CS0183 // 'is' expression's given expression is always of the provided type
23-
// }
249

2510
[Fact]
2611
public void EmptySourceResultInEmptySpan()

0 commit comments

Comments
 (0)