Esempio n. 1
0
        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]; }
 }
Esempio n. 3
0
 private string GetFeatureName(Feature feature)
 {
     // HACK :)
     var method = feature.Key as MethodInfo;
     return method != null ? method.Name : feature.Name;
 }