public async Task Should_detect_OAS_type_from_json_file() { var type = await AmfParser.DetectType("specs/oas/json/api-with-examples.json"); Assert.AreEqual(SpecificationType.OASJSON, type); }
public async Task Should_detect_RAML_type_from_file_contents() { var type = await AmfParser.DetectType("specs/movies-v1.yaml"); Assert.AreEqual(SpecificationType.RAML, type); }
public async Task Should_detect_OAS_type_from_yaml_file() { var type = await AmfParser.DetectType("specs/oas/yaml/api-with-examples.yaml"); Assert.AreEqual(SpecificationType.OASYAML, type); }
public async Task Should_detect_RAML_08() { var type = await AmfParser.DetectType("specs/raml08/chinook.raml"); Assert.AreEqual(SpecificationType.RAML08, type); }