예제 #1
0
        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);
        }
예제 #2
0
 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));
 }