public static JObject ReadTestData(string name) { using (var resource = EmbeddedResourceManager.GetEmbeddedResource(name)) using (var reader = new StreamReader(resource)) using (var jsonReader = new JsonTextReader(reader)) { return(JObject.Load(jsonReader)); } }