コード例 #1
0
        public void Has()
        {
            const Flag keys = Flag.Active | Flag.HasCache;

            Assert.IsTrue(keys.Has(Flag.Active));
            Assert.AreEqual(Flag.Active | Flag.HasCache, keys);
        }
コード例 #2
0
        public void HasNot()
        {
            const Flag keys = Flag.Active | Flag.HasCache;

            Assert.IsFalse(keys.Has(Flag.NextDirectEvaluate));
            Assert.AreEqual(Flag.Active | Flag.HasCache, keys);
        }