public static Benchmark LoadFromString (string jsonContent)
{
var benchmark = JsonConvert.DeserializeObject<Benchmark> (jsonContent);
if (String.IsNullOrWhiteSpace (benchmark.TestDirectory))
throw new InvalidDataException ("TestDirectory");
if (benchmark.CommandLine == null || benchmark.CommandLine.Length == 0)
throw new InvalidDataException ("CommandLine");
return benchmark;
}