public void CreateExmpleFeatureCollection_FeatureCollectionType_UpdateExample() { var filter = new FeatureCollectionExampleFilter(); var schema = new Schema(); filter.Apply(schema, new Swashbuckle.AspNetCore.SwaggerGen.SchemaFilterContext(typeof(FeatureCollection), null, null)); Assert.AreNotEqual(null, schema.Example); }
public void CreateExmpleFeatureCollection_NonFeatureCollectionType_NotDoAnyThing() { var filter = new FeatureCollectionExampleFilter(); var schema = new Schema(); filter.Apply(schema, null); Assert.AreEqual(null, schema.Example); }