private static void TestGetOperationName(string name, string method, string expected) { var result = TemplateGenerator.GetOperationName(JObject.FromObject(new { name = name, properties = new { method = method } })); Assert.AreEqual(expected, result); }