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_GetSSDLNamespaceName_returns_correct_Ssdl_namespaces_for_requested_version() { Assert.Equal(SsdlNsV1, SchemaManager.GetSSDLNamespaceName(new Version(1, 0, 0, 0))); Assert.Equal(SsdlNsV2, SchemaManager.GetSSDLNamespaceName(new Version(2, 0, 0, 0))); Assert.Equal(SsdlNsV3, SchemaManager.GetSSDLNamespaceName(new Version(3, 0, 0, 0))); }