-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
5,588 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Version>9.3.0</Version> | ||
<PackageVersion>9.3.0</PackageVersion> | ||
<AssemblyVersion>9.3.0</AssemblyVersion> | ||
<Version>9.4.0</Version> | ||
<PackageVersion>9.4.0</PackageVersion> | ||
<AssemblyVersion>9.4.0</AssemblyVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright 2020 ONIXLabs | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using System; | ||
using Xunit; | ||
|
||
namespace OnixLabs.Core.UnitTests; | ||
|
||
public sealed class RandomExtensionTests | ||
{ | ||
[Fact(DisplayName = "Random.Next should produce the expected result")] | ||
public void RandomNextShouldProduceExpectedResult() | ||
{ | ||
// Given | ||
Random random = new(0); | ||
const string expected = "klm"; | ||
string[] values = ["abc", "def", "hij", "klm", "xyz"]; | ||
|
||
// When | ||
string actual = random.Next(values); | ||
|
||
// Then | ||
Assert.Equal(expected, actual); | ||
} | ||
} |
2,277 changes: 2,078 additions & 199 deletions
2,277
OnixLabs.Core.UnitTests/ResultExtensionTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.