mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
20 lines
446 B
C#
20 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);
|
|
}
|
|
}
|
|
}
|