Files
jellyfin/tests/Jellyfin.MediaEncoding.Tests/Encoder/ApplePlatformHelperTests.cs
2026-06-16 17:45:22 +02:00

23 lines
610 B
C#

using System;
using System.Runtime.Versioning;
using MediaBrowser.MediaEncoding.Encoder;
using Xunit;
namespace Jellyfin.MediaEncoding.Tests;
[SupportedOSPlatform("macos")]
public class ApplePlatformHelperTests
{
[Fact]
public void GetSysctlValue_CpuBrand_NotEmpty()
{
Assert.SkipUnless(OperatingSystem.IsMacOS(), "macOS-only test");
var value = ApplePlatformHelper.GetSysctlValue("machdep.cpu.brand_string");
Assert.NotEmpty(value);
// Make sure we don't include the null terminator
Assert.DoesNotContain("\0", value, StringComparison.Ordinal);
}
}