public void SchemaManager_GetEdmxNamespaceManager_namespace_manager_with_correct_bindings() { for (var majorVersion = 1; majorVersion <= 3; majorVersion++) { var version = new Version(majorVersion, 0, 0, 0); var nsMgr = SchemaManager.GetEdmxNamespaceManager(new NameTable(), version); Assert.Equal(SchemaManager.GetEDMXNamespaceName(version), nsMgr.LookupNamespace("edmx")); Assert.Equal(SchemaManager.GetCSDLNamespaceName(version), nsMgr.LookupNamespace("csdl")); Assert.Equal(SchemaManager.GetEntityStoreSchemaGeneratorNamespaceName(), nsMgr.LookupNamespace("essg")); Assert.Equal(SchemaManager.GetSSDLNamespaceName(version), nsMgr.LookupNamespace("ssdl")); Assert.Equal(SchemaManager.GetMSLNamespaceName(version), nsMgr.LookupNamespace("msl")); } }
public void SchemaManager_GetEDMXNamespaceName_returns_correct_Edmx_namespaces_for_requested_version() { Assert.Equal(EdmxNsV1, SchemaManager.GetEDMXNamespaceName(new Version(1, 0, 0, 0))); Assert.Equal(EdmxNsV2, SchemaManager.GetEDMXNamespaceName(new Version(2, 0, 0, 0))); Assert.Equal(EdmxNsV3, SchemaManager.GetEDMXNamespaceName(new Version(3, 0, 0, 0))); }