public void Can_resolve_absolute_uri_based_on_base_uri_and_relative_uri() { var schemaResolver = new EdmRuntimeSchemaResolver(); foreach (var schemaName in KnownSchemaNames) { Assert.Equal( new Uri("res://" + schemaName, UriKind.Absolute), schemaResolver.ResolveUri(null, schemaName)); } }
public void Can_get_resource_stream_for_all_schemas() { var schemaResolver = new EdmRuntimeSchemaResolver(); foreach (var schemaUri in KnownSchemaNames.Select(schemaName => new Uri("res://" + schemaName, UriKind.Absolute))) { var stream = (Stream)schemaResolver.GetEntity(schemaUri, null, null); Assert.NotNull(stream); stream.Dispose(); } }