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)); }
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); }