public void Can_set_and_retrieve_buffer_by_key() { byte[] bytes = Encoding.ASCII.GetBytes("a bunch of bytes"); var record = new CKRecord("record_type"); var bytesKey = "bytes_key"; record.SetBuffer(bytes, bytesKey); Assert.AreEqual(record.BufferForKey(bytesKey), bytes); }