Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMatthewLayton committed Aug 18, 2024
2 parents b968803 + c297c93 commit 6bb968e
Show file tree
Hide file tree
Showing 10 changed files with 5,588 additions and 434 deletions.
6 changes: 3 additions & 3 deletions Directory.Build.props
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>
36 changes: 36 additions & 0 deletions OnixLabs.Core.UnitTests/RandomExtensionTests.cs
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 OnixLabs.Core.UnitTests/ResultExtensionTests.cs

Large diffs are not rendered by default.

Loading

0 comments on commit 6bb968e

Please sign in to comment.