Skip to content

Commit 6bb968e

Browse files
Merge branch 'main' into release
2 parents b968803 + c297c93 commit 6bb968e

10 files changed

+5588
-434
lines changed

Directory.Build.props

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>9.3.0</Version>
4-
<PackageVersion>9.3.0</PackageVersion>
5-
<AssemblyVersion>9.3.0</AssemblyVersion>
3+
<Version>9.4.0</Version>
4+
<PackageVersion>9.4.0</PackageVersion>
5+
<AssemblyVersion>9.4.0</AssemblyVersion>
66
</PropertyGroup>
77
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright 2020 ONIXLabs
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
using System;
16+
using Xunit;
17+
18+
namespace OnixLabs.Core.UnitTests;
19+
20+
public sealed class RandomExtensionTests
21+
{
22+
[Fact(DisplayName = "Random.Next should produce the expected result")]
23+
public void RandomNextShouldProduceExpectedResult()
24+
{
25+
// Given
26+
Random random = new(0);
27+
const string expected = "klm";
28+
string[] values = ["abc", "def", "hij", "klm", "xyz"];
29+
30+
// When
31+
string actual = random.Next(values);
32+
33+
// Then
34+
Assert.Equal(expected, actual);
35+
}
36+
}

OnixLabs.Core.UnitTests/ResultExtensionTests.cs

+2,078-199
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)