Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMatthewLayton committed Jul 19, 2024
2 parents 07cb34b + b48540e commit 6c4b5c2
Show file tree
Hide file tree
Showing 173 changed files with 4,562 additions and 3,562 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- '**'

env:
USE_FULL_NUMERIC_PROVIDER: "true"

jobs:
build:

Expand Down
2 changes: 1 addition & 1 deletion OnixLabs.Core.UnitTests.Data/Record.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

namespace OnixLabs.Core.UnitTests.Data;

public sealed record Record<T>(string Text, int Number, T Value);
public sealed record Record<T>(string Text, int Number, T Value, IEnumerable<T>? Values = null);
15 changes: 15 additions & 0 deletions OnixLabs.Core.UnitTests/ArrayExtensionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

using System.Text;
using Xunit;

namespace OnixLabs.Core.UnitTests;
Expand Down Expand Up @@ -62,4 +63,18 @@ public void ConcatenateWithShouldProduceExpectedResult()
// Then
Assert.Equal(expected, actual);
}

[Fact(DisplayName = "Array.ToString should produce the expected result")]
public void ToStringShouldProduceExpectedResult()
{
// Given
const string expected = "ABCxyz123";
byte[] bytes = expected.ToByteArray();

// When
string actual = bytes.ToString(Encoding.UTF8);

// Then
Assert.Equal(expected, actual);
}
}
Loading

0 comments on commit 6c4b5c2

Please sign in to comment.