public void SchemaManager_GetSchemaVersion_returns_correct_version_for_namespace()
        {
            var v1 = new Version(1, 0, 0, 0);
            var v2 = new Version(2, 0, 0, 0);
            var v3 = new Version(3, 0, 0, 0);


            Assert.Equal(v1, SchemaManager.GetSchemaVersion(CsdlNsV1));
            Assert.Equal(v2, SchemaManager.GetSchemaVersion(CsdlNsV2));
            Assert.Equal(v3, SchemaManager.GetSchemaVersion(CsdlNsV3));

            Assert.Equal(v1, SchemaManager.GetSchemaVersion(SsdlNsV1));
            Assert.Equal(v2, SchemaManager.GetSchemaVersion(SsdlNsV2));
            Assert.Equal(v3, SchemaManager.GetSchemaVersion(SsdlNsV3));

            Assert.Equal(v1, SchemaManager.GetSchemaVersion(MslNsV1));
            Assert.Equal(v2, SchemaManager.GetSchemaVersion(MslNsV2));
            Assert.Equal(v3, SchemaManager.GetSchemaVersion(MslNsV3));

            Assert.Equal(v1, SchemaManager.GetSchemaVersion(EdmxNsV1));
            Assert.Equal(v2, SchemaManager.GetSchemaVersion(EdmxNsV2));
            Assert.Equal(v3, SchemaManager.GetSchemaVersion(EdmxNsV3));

            Assert.Equal(v1, SchemaManager.GetSchemaVersion(null));
            Assert.Equal(v1, SchemaManager.GetSchemaVersion("abc"));
        }
 public void SchemaManager_GetSchemaVersion_returns_null_for_unknown_namespace()
 {
     Assert.Equal(new Version(1, 0, 0, 0), SchemaManager.GetSchemaVersion("http://tempuri.org"));
 }