Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Random span-based API tests #23692

Merged
merged 5 commits into from
Sep 7, 2017
Merged

Conversation

MaggieTsang
Copy link
Contributor

Added tests for Span API in Random class. References https://github.com/dotnet/corefx/issues/22356.

Depends on dotnet/coreclr#13708.

@@ -54,13 +54,35 @@ public static void Seeded()
}

[Fact]
public static void ExpectedValues()
public static void Seeded_Span()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing test passing a zero length span.

@@ -54,13 +54,35 @@ public static void Seeded()
}

[Fact]
public static void ExpectedValues()
public static void Seeded_Span()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect you're going to need to separate this test out into its own file that's only built when targeting netcoreapp. The test project has netstandard configurations, and the new API won't be available there. Some examples are here: https://github.com/dotnet/corefx/blob/master/src/System.Runtime.Extensions/tests/System.Runtime.Extensions.Tests.csproj#L35-L44

@MaggieTsang
Copy link
Contributor Author

@dotnet-bot test UWP NETNative x86 Release Build
@dotnet-bot test Packaging All Configurations x64 Debug Build

Couldn't delete workspace.

@danmoseley
Copy link
Member

Need to either baseline the uap errors or wait a few days for new project N bits. I suggest the latter.

@MaggieTsang
Copy link
Contributor Author

@dotnet-bot test UWP NETNative x86 Release Build
@dotnet-bot test Packaging All Configurations x64 Debug Build

@MaggieTsang MaggieTsang merged commit 94a3498 into dotnet:master Sep 7, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Random span extensions

* Random span tests

* random span tests

* Test configurations

* Fixed item group condition


Commit migrated from dotnet/corefx@94a3498
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants