public void ClientConfig_ClientInit_FromFile() { const string filename = "ClientConfig_NewAzure.xml"; var client = new ClientBuilder() .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(ISimpleGrain).Assembly)) .LoadConfiguration(filename) .Build(); try { ClientConfiguration config = client.Configuration(); output.WriteLine(config); Assert.NotNull(config); // Client.CurrentConfig Assert.Equal(filename, Path.GetFileName(config.SourceFile)); // ClientConfig.SourceFile // GatewayProviderType Assert.Equal(ClientConfiguration.GatewayProviderType.AzureTable, config.GatewayProvider); } finally { client.Dispose(); } }