public void TestClusterOperationsThrowCorrectExceptionOnVersionsOlderThan150()
 {
     using (var client = StartClient())
     {
         ClientProtocolCompatibilityTest.TestClusterOperationsThrowCorrectExceptionOnVersionsOlderThan150(
             client, _clientProtocolVersion);
     }
 }
 public void TestClusterGroupOperationsThrowCorrectExceptionWhenFeatureIsMissing()
 {
     using (var client = StartClient())
     {
         // ReSharper disable once AccessToDisposedClosure
         ClientProtocolCompatibilityTest.AssertNotSupportedFeatureOperation(
             () => client.GetCluster().ForServers().GetNodes(),
             ClientBitmaskFeature.ClusterGroups,
             ClientOp.ClusterGroupGetNodeIds);
     }
 }
 public void TestComputeOperationsThrowCorrectExceptionWhenFeatureIsMissing()
 {
     using (var client = StartClient())
     {
         // ReSharper disable once AccessToDisposedClosure
         ClientProtocolCompatibilityTest.AssertNotSupportedFeatureOperation(
             () => client.GetCompute().ExecuteJavaTask <int>("t", null),
             ClientBitmaskFeature.ExecuteTaskByName,
             ClientOp.ComputeTaskExecute);
     }
 }
        public void TestClusterOperationsThrowCorrectExceptionOnVersionsOlderThan150()
        {
            if (_clientProtocolVersion >= ClientSocket.Ver150)
            {
                return;
            }

            using (var client = StartClient())
            {
                ClientProtocolCompatibilityTest.TestClusterOperationsThrowCorrectExceptionOnVersionsOlderThan150(
                    client, _clientProtocolVersion.ToString());
            }
        }
        public void TestWithExpiryPolicyThrowCorrectExceptionOnVersionsOlderThan150()
        {
            if (_clientProtocolVersion >= ClientSocket.Ver150)
            {
                return;
            }

            using (var client = StartClient())
            {
                var cache           = client.GetOrCreateCache <int, int>(TestContext.CurrentContext.Test.Name);
                var cacheWithExpiry = cache.WithExpiryPolicy(new ExpiryPolicy(TimeSpan.FromSeconds(1), null, null));

                ClientProtocolCompatibilityTest.AssertNotSupportedOperation(
                    () => cacheWithExpiry.Put(1, 2), _clientProtocolVersion.ToString(), "WithExpiryPolicy");
            }
        }