mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-19 06:00:41 +01:00
23 lines
610 B
C#
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);
|
|
}
|
|
}
|