예제 #1
0
        public void Resolve_GreaterThanInt32Fail_ThrowException()
        {
            var differed = new DifferedConstraint(typeof(GreaterThanConstraint), new LiteralScalarResolver <decimal>(new LiteralScalarResolverArgs(3)));
            var ctr      = differed.Resolve();

            Assert.Throws <AssertionException>(() => Assert.That(2, ctr));
        }
예제 #2
0
        public void Resolve_GreaterThanInt32Success_Pass()
        {
            var differed = new DifferedConstraint(typeof(GreaterThanConstraint), new LiteralScalarResolver <decimal>(new LiteralScalarResolverArgs(3)));
            var ctr      = differed.Resolve();

            Assert.That(5, ctr);
        }