Example #1
0
        public void GuaranteeThisGeneric()
        {
            var data = new List <int>();

            Guarantee.This((lst) => lst.Count == 0, data);
            Assert.Throws <Exception>(() => Guarantee.This((lst) => lst.Count == 1, data));
        }
Example #2
0
        public void GuaranteeThis()
        {
            var data = new List <int>();

            Guarantee.This(() => true);
            Assert.Throws <Exception>(() => Guarantee.This(() => false));
        }