// [Fact] private void DumpProcessorFeatures() { foreach (ProcessorFeature feature in Enum.GetValues(typeof(ProcessorFeature))) { Debug.WriteLine($"{feature}: {SystemInformationMethods.IsProcessorFeaturePresent(feature)}"); } }
public void IsProcessorFeaturePresent() { // We shouldn't be able to run on the original Pentium, so this should always be false. SystemInformationMethods.IsProcessorFeaturePresent(ProcessorFeature.PF_FLOATING_POINT_PRECISION_ERRATA).Should().BeFalse(); // I don't think any platform doesn't support this SystemInformationMethods.IsProcessorFeaturePresent(ProcessorFeature.PF_COMPARE_EXCHANGE_DOUBLE).Should().BeTrue(); }