private KeyValuePair<string, object> GetSingleFeatureData(Feature feature, FeatureCell cell) { var key = this.GetFeatureName(feature); var value = new { result = cell.State.ToString().ToLowerInvariant(), comment = cell.Details, error = cell.RawError }; return new KeyValuePair<string, object>(key, value); }
public FeatureCell this[ILibrary library, Feature feature] { get { return this[library, feature.Key]; } }
private string GetFeatureName(Feature feature) { // HACK :) var method = feature.Key as MethodInfo; return method != null ? method.Name : feature.Name; }