Cosmos/Tests/Cosmos.Core.Tests/CPUTests.cs
Quajak 39f72f9dfd Fixed estimate cpu speed method
Added a unit test
2020-11-14 20:50:46 +01:00

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"));
}
}
}