コード例 #1
0
 public static void Test(int configuredCount, int readerCount, int expected) =>
 Assert.AreEqual(expected, ThreadCountCalculator.CalculateWorkerThreadCount(configuredCount, readerCount));
コード例 #2
0
 public static void Test(int configuredCount, int processorCount, int expected) =>
 Assert.AreEqual(expected, ThreadCountCalculator.CalculateReaderThreadCount(configuredCount, processorCount));