mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
19 lines
521 B
C#
19 lines
521 B
C#
using NUnit.Framework;
|
|
using Cosmos.Core;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Core.Tests
|
|
{
|
|
[TestFixture()]
|
|
public class CPUTests
|
|
{
|
|
[Test()]
|
|
public void EstimateCPUSpeedFromNameTest()
|
|
{
|
|
Assert.AreEqual((long)2.8e9, CPU.EstimateCPUSpeedFromName(" Intel(R) Celeron(R) CPU 2.80GHz"));
|
|
Assert.AreEqual((long)2.8e9, CPU.EstimateCPUSpeedFromName("Intel(R) Celeron(R) CPU 2.80GHz"));
|
|
}
|
|
}
|
|
}
|