public void IsProcessorActive(int index, string str, bool expectedResult) { Assert.Equal(expectedResult, ProcessAffinity.IsProcessorActive(ProcessAffinity.Parse(str), index)); }
public void Parse(string str, int maximumProcessorCount, bool concise) { Assert.Equal(Normalize(str), ProcessAffinity.ToString(ProcessAffinity.Parse(str), maximumProcessorCount, false, concise)?.Trim()); }
public void CountActiveProcessors(string str, int maximumProcessorCount, int expectedResult) { Assert.Equal(expectedResult, ProcessAffinity.CountActiveProcessors(ProcessAffinity.Parse(str), maximumProcessorCount)); }
public IsolationLimits WithAffinityMask(string value, CultureInfo cultureInfo = null) { return(new IsolationLimits(MaxMemory, MaxCpuUsage, ProcessAffinity.Parse(value))); }