public void ExactShouldReturnFalseWhenTwoEqualStringsWithDifferentCase() { var func = new Exact(); var result = func.Execute(FunctionsHelper.CreateArgs("abc", "Abc"), _parsingContext); Assert.IsFalse((bool)result.Result); }
public void ExactShouldReturnFalseWhenStringAndNull() { var func = new Exact(); var result = func.Execute(FunctionsHelper.CreateArgs("1", null), _parsingContext); Assert.IsFalse((bool)result.Result); }
public void ExactShouldReturnTrueWhenEqualStringAndDouble() { var func = new Exact(); var result = func.Execute(FunctionsHelper.CreateArgs("1", 1d), _parsingContext); Assert.IsTrue((bool)result.Result); }
public void ExactShouldReturnTrueWhenTwoEqualStrings() { var func = new Exact(); var result = func.Execute(FunctionsHelper.CreateArgs("abc", "abc"), this.ParsingContext); Assert.IsTrue((bool)result.Result); }
public void ExactWithInvalidArgumentReturnsPoundValue() { var func = new Exact(); var args = FunctionsHelper.CreateArgs(); var result = func.Execute(args, this.ParsingContext); Assert.AreEqual(eErrorType.Value, ((ExcelErrorValue)result.Result).Type); }