You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/tests/Jellyfin.Extensions.Tests/ShuffleExtensionsTests.cs

20 lines
446 B

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);
}
}
}