예제 #1
0
        public void IsNotSatisfiedByContext()
        {
            IsFact  fact    = new IsFact("Temperature", 38);
            Context context = new Context();

            Assert.IsFalse(fact.IsSatisfiedByContext(context));
        }
예제 #2
0
        public void IsSatisfiedByContext()
        {
            IsFact  fact    = new IsFact("Temperature", 38);
            Context context = new Context();

            context.SetValue("Temperature", 38);
            Assert.IsTrue(fact.IsSatisfiedByContext(context));
        }