public void IsValidModelNamespace_returns_false_for_invalid_namespaces() { // the version does not matter since the definition // of allowed strings for namespaces have not changed since v1 Assert.False(EdmUtils.IsValidModelNamespace(null)); Assert.False(EdmUtils.IsValidModelNamespace(string.Empty)); Assert.False(EdmUtils.IsValidModelNamespace("\u0001\u0002")); Assert.False(EdmUtils.IsValidModelNamespace("<>")); }
public void IsValidModelNamespace_returns_true_for_valid_namespaces() { // the version does not matter since the definition // of allowed strings for namespaces have not changed since v1 Assert.True(EdmUtils.IsValidModelNamespace("abc")); }