24 lines
598 B
C#
24 lines
598 B
C#
// <copyright file="ShuffleExtensionsTests.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
using System;
|
|
using Xunit;
|
|
|
|
namespace Jellyfin.Extensions.Tests
|
|
{
|
|
public static class ShuffleExtensionsTests
|
|
{
|
|
[Fact]
|
|
public static void Shuffle_Valid_Correct()
|
|
{
|
|
byte[] original = new byte[1 << 6];
|
|
Random.Shared.NextBytes(original);
|
|
byte[] shuffled = (byte[])original.Clone();
|
|
shuffled.Shuffle();
|
|
|
|
Assert.NotEqual(original, shuffled);
|
|
}
|
|
}
|
|
}
|