Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public async Task Should_detect_RAML_type_from_file_contents()
        {
            var type = await AmfParser.DetectType("specs/movies-v1.yaml");

            Assert.AreEqual(SpecificationType.RAML, type);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        public async Task Should_detect_RAML_08()
        {
            var type = await AmfParser.DetectType("specs/raml08/chinook.raml");

            Assert.AreEqual(SpecificationType.RAML08, type);
        }