mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 12:28:19 +02:00
19 lines
446 B
C#
19 lines
446 B
C#
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);
|
|
}
|
|
}
|
|
}
|