public static void Test07GetCharacteristics() { // Update expected values only if Job properties were changed. // Otherwise, there's a bug. var a = CharacteristicHelper .GetThisTypeCharacteristics(typeof(Job)) .Select(c => c.Id); Equal(string.Join(";", a), "Id;Accuracy;Env;Infrastructure;Run"); a = CharacteristicHelper .GetAllCharacteristics(typeof(Job)) .Select(c => c.Id); Equal(string.Join(";", a), "Id;Accuracy;AnalyzeLaunchVariance;EvaluateOverhead;" + "MaxAbsoluteError;MaxRelativeError;MinInvokeCount;MinIterationTime;RemoveOutliers;Env;Affinity;" + "Jit;Platform;Runtime;Gc;AllowVeryLargeObjects;Concurrent;CpuGroups;Force;" + "RetainVm;Server;Infrastructure;Arguments;BuildConfiguration;Clock;EngineFactory;EnvironmentVariables;Toolchain;Run;InvocationCount;IterationTime;" + "LaunchCount;RunStrategy;TargetCount;UnrollFactor;WarmupCount"); }
public static void Test07GetCharacteristics() { // Update expected values only if Job properties were changed. // Otherwise, there's a bug. var a = CharacteristicHelper .GetThisTypeCharacteristics(typeof(Job)) .Select(c => c.Id); Assert.Equal("Id;Accuracy;Environment;Infrastructure;Meta;Run", string.Join(";", a)); a = CharacteristicHelper .GetAllCharacteristics(typeof(Job)) .Select(c => c.Id); Assert.Equal("Id;Accuracy;AnalyzeLaunchVariance;EvaluateOverhead;" + "MaxAbsoluteError;MaxRelativeError;MinInvokeCount;MinIterationTime;OutlierMode;Environment;Affinity;EnvironmentVariables;" + "Jit;Platform;Runtime;Gc;AllowVeryLargeObjects;Concurrent;CpuGroups;Force;HeapAffinitizeMask;HeapCount;NoAffinitize;" + "RetainVm;Server;Infrastructure;Arguments;BuildConfiguration;Clock;EngineFactory;NugetReferences;Toolchain;Meta;Baseline;IsDefault;IsMutator;Run;InvocationCount;IterationCount;IterationTime;" + "LaunchCount;MaxIterationCount;MaxWarmupIterationCount;MinIterationCount;MinWarmupIterationCount;RunStrategy;UnrollFactor;WarmupCount", string.Join(";", a)); }