public void SetPool_ShouldSuccess() { var alias = "Test"; var connection = new RfcConnection(_interopMock.Object, RfcConfigurationOption); var rfcConnectionPoolMock = new Mock <IRfcConnectionPool>(); rfcConnectionPoolMock.SetupProperty(p => p.ServerAlias, alias); connection.SetPool(rfcConnectionPoolMock.Object); connection.IsPooled.Should().BeTrue(); }