public void TestFileDirectoryEncryption() { bool requestFound = false; OperationContext ctxt = new OperationContext(); ctxt.RequestCompleted += (sender, args) => { Assert.IsTrue(args.RequestInformation.IsRequestServerEncrypted); requestFound = true; }; CloudFileDirectory dir2 = this.share.GetRootDirectoryReference().GetDirectoryReference("dir2"); dir2.Create(null, ctxt); Assert.IsTrue(requestFound); requestFound = false; dir2.SetMetadata(null, null, ctxt); Assert.IsTrue(requestFound); }