public void CalculateLessFalseTest() { var parameters = new ParameterCollection { new Parameter("x", 666) }; var lessOrEqual = new LessOrEqual(Variable.X, new Number(10)); Assert.False((bool)lessOrEqual.Execute(parameters)); }
public void CalculateLessFalseTest() { var parameters = new ParameterCollection() { new Parameter("x", 666) }; var lessThen = new LessOrEqual(new Variable("x"), new Number(10)); Assert.Equal(false, lessThen.Execute(parameters)); }
public void CalculateLessTrueTest2() { var parameters = new ParameterCollection() { new Parameter("x", 10) }; var lessThen = new LessOrEqual(Variable.X, new Number(10)); Assert.True((bool)lessThen.Execute(parameters)); }
public void CalculateInvalidTypeTest() { var lessOrEqual = new LessOrEqual(new Bool(true), new Bool(true)); Assert.Throws <ResultIsNotSupportedException>(() => lessOrEqual.Execute()); }