mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 18:42:52 -07:00
22 lines
498 B
C#
22 lines
498 B
C#
using System;
|
|
using Xunit;
|
|
|
|
namespace Jellyfin.Extensions.Tests
|
|
{
|
|
public static class ShuffleExtensionsTests
|
|
{
|
|
private static readonly Random _rng = new Random();
|
|
|
|
[Fact]
|
|
public static void Shuffle_Valid_Correct()
|
|
{
|
|
byte[] original = new byte[1 << 6];
|
|
_rng.NextBytes(original);
|
|
byte[] shuffled = (byte[])original.Clone();
|
|
shuffled.Shuffle();
|
|
|
|
Assert.NotEqual(original, shuffled);
|
|
}
|
|
}
|
|
}
|