public void TestCPUFactory(decimal baseFrequency, decimal boostFrequency, CPUCores cores, CPUManufacturer manufacturer, string model, string socket, int tdp, int threads) { CPU cpu = CPUFactory.CreateCPU(baseFrequency, boostFrequency, cores, manufacturer, model, socket, tdp, threads); Assert.IsInstanceOf(typeof(CPU), cpu); }
public static CPU CreateCPU(decimal baseFrequency, decimal boostFrequency, CPUCores cores, CPUManufacturer manufacturer, string model, string socket, int tdp, int threads) { return(new CPU(baseFrequency, boostFrequency, cores, manufacturer, model, socket, tdp, threads)); }