public void TestRangeGetIsDisabled() { AssertExtensions.ExpectException <NotSupportedException>(() => { AsyncHelpers.RunSync(() => EncryptionTestsUtils.AttemptRangeGet(s3EncryptionClientFileModeAsymmetricWrapV1N, bucketName)); }, EncryptionTestsUtils.RangeGetNotSupportedMessage); AssertExtensions.ExpectException <NotSupportedException>(() => { AsyncHelpers.RunSync(() => EncryptionTestsUtils.AttemptRangeGet(s3EncryptionClientFileModeAsymmetricWrapV2, bucketName)); }, EncryptionTestsUtils.RangeGetNotSupportedMessage); }