public void HasVariable_DictionaryIsNull_ReturnsFalse() { IDictionary dictionary = null; var ctx = new DictionaryExpressionContext(dictionary); Assert.False(ctx.HasVariable("name")); }
public void HasVariable_DictionaryWithVariable_ReturnsTrue() { IDictionary dictionary = new Dictionary <string, string>() { { "name", "Michael" } }; var ctx = new DictionaryExpressionContext(dictionary); Assert.True(ctx.HasVariable("name")); }