public void AddFunction_should_uniquify_name() { var database = new EdmModel(DataSpace.SSpace); database.AddFunction("F", new EdmFunctionPayload()); var function = database.AddFunction("F", new EdmFunctionPayload()); Assert.True(database.Functions.Contains(function)); Assert.Equal("F1", database.Functions.Last().Name); }
public void AddFunction_should_create_and_add_function_to_model() { var database = new EdmModel(DataSpace.SSpace); var function = database.AddFunction("F", new EdmFunctionPayload()); Assert.True(database.Functions.Contains(function)); Assert.Equal("F", database.Functions.First().Name); }