Ejemplo n.º 1
0
        public void InitWithArgs_PropertyMustEqualInput()
        {
            var t = TimeSpan.FromSeconds(10);
            var s = new StoreFetchSettings(true, t);

            Assert.IsTrue(s.ForceNoCache);
            Assert.AreEqual(t, s.ExpiresTime);
        }
Ejemplo n.º 2
0
        public void Clone_AllPropertyMustEqual()
        {
            var a = new StoreFetchSettings(true, TimeSpan.FromSeconds(10))
            {
                DisposeStream = true
            };

            var b = a.Clone();

            Assert.AreEqual(a.DisposeStream, b.DisposeStream);
            Assert.AreEqual(a.ExpiresTime, b.ExpiresTime);
            Assert.AreEqual(a.ForceNoCache, b.ForceNoCache);
        }