public void ParseMediaTypeWithExamplesShouldSucceed() { // Arrange MapNode node; using (var stream = Resources.GetStream(Path.Combine(SampleFolderPath, "mediaTypeWithExamples.yaml"))) { node = TestHelper.CreateYamlMapNode(stream); } // Act var mediaType = OpenApiV3Deserializer.LoadMediaType(node); // Assert mediaType.ShouldBeEquivalentTo( new OpenApiMediaType { Examples = { ["example1"] = new OpenApiExample() { Value = new OpenApiFloat(5), }, ["example2"] = new OpenApiExample() { Value = new OpenApiFloat((float)7.5), } }, Schema = new OpenApiSchema { Type = "number", Format = "float" } }); }