Esempio n. 1
0
    public void GetSchemaNameEmpty()
    {
        var schema = new OpenApiSchema {
        };
        var names  = schema.GetSchemaNames();

        Assert.Empty(names);
        Assert.Null(schema.GetSchemaName());
    }
Esempio n. 2
0
    public void GetSchemaNameTitle()
    {
        var schema = new OpenApiSchema {
            Title = "microsoft.graph.entity"
        };
        var names = schema.GetSchemaNames();

        Assert.Contains("microsoft.graph.entity", names);
        Assert.Equal("microsoft.graph.entity", schema.GetSchemaName());
        Assert.Single(names);
    }