Tests for nullable reference types in Span apis (dotnet/corefx#38625)
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Wed, 26 Jun 2019 18:54:06 +0000 (11:54 -0700)
committerAhson Khan <ahkha@microsoft.com>
Wed, 26 Jun 2019 18:54:06 +0000 (11:54 -0700)
commit59c5617312875257450be177a54d435d4e229c75
treedb6179a0b936169981c5046d28661c7d220ddcb3
parentaadc9a1f163425fed300041311b9ad5886d38842
Tests for nullable reference types in Span apis (dotnet/corefx#38625)

* Some more null index checks

* adding test for ReadonlySpan overload and refactoring all overloads into a single test

* FIxing the tests with ben change and rebasing

Commit migrated from https://github.com/dotnet/corefx/commit/96a713d3434af8d443f87874e915f5d36c47a564
14 files changed:
src/libraries/System.Memory/tests/ReadOnlySpan/Contains.T.cs
src/libraries/System.Memory/tests/ReadOnlySpan/IndexOfAny.T.cs
src/libraries/System.Memory/tests/ReadOnlySpan/IndexOfSequence.T.cs
src/libraries/System.Memory/tests/ReadOnlySpan/LastIndexOfAny.T.cs
src/libraries/System.Memory/tests/ReadOnlySpan/LastIndexOfSequence.T.cs
src/libraries/System.Memory/tests/ReadOnlySpan/SequenceEqual.T.cs
src/libraries/System.Memory/tests/Span/Contains.T.cs [new file with mode: 0644]
src/libraries/System.Memory/tests/Span/IndexOfAny.T.cs
src/libraries/System.Memory/tests/Span/IndexOfSequence.T.cs
src/libraries/System.Memory/tests/Span/LastIndexOfAny.T.cs
src/libraries/System.Memory/tests/Span/LastIndexOfSequence.T.cs
src/libraries/System.Memory/tests/Span/SequenceEqual.T.cs
src/libraries/System.Memory/tests/System.Memory.Tests.csproj
src/libraries/System.Memory/tests/TestHelpers.cs