public void Enum_ContainsTag() { Type type = typeof(TestEnum); SchemaFilterContext context = CreateContext(type); _filter.Apply(_schema, context); Assert.IsNotNull(_schema.Extensions); Assert.IsTrue(_schema.Extensions.Keys.Contains(XTag)); }
public void GuidType_XNullableFalse() { Type type = typeof(Guid); SchemaFilterContext context = CreateContext(type); _filter.Apply(_schema, context); Assert.IsNotNull(_schema.Extensions); Assert.IsTrue(_schema.Extensions.Keys.Contains(XTag)); Assert.AreEqual(false, _schema.Extensions[XTag]); }