public void ModNumbersReturnsSum() { var rule = new ModRule(4, 5); var actual = rule.Apply(); JsonAssert.AreEquivalent(4, actual); }
public void ModByZeroThrowsError() { var rule = new ModRule(4, 0); Assert.Throws <JsonLogicException>(() => rule.Apply()); }
public void ModNonNumberThrowsError() { var rule = new ModRule("test", 5); Assert.Throws <JsonLogicException>(() => rule.Apply()); }