コード例 #1
0
        public void When_Cloned_Expires_Is_Copied()
        {
            var op = new Touch("key", null, new DefaultTranscoder(), 1000)
            {
                Expires = 10
            };

            Assert.AreEqual(10, op.Expires);
            var cloned = op.Clone() as Touch;

            Assert.AreEqual(10, cloned.Expires);
        }