public void ApplyTokenRules_NullValue_ReturnsNull() { // Arrange / Act var result = TokenRuleExtensions.ApplyTokenRules <object>(null, null, null); // Assert result.Should().BeNull(); }
public void ApplyTokenRules_EmptyRules_ResturnsValue(IEnumerable <ITokenRule <int> > rules) { // Arrange var collection = new[] { 1, 2, 3, 4, 5 }; // Act var result = TokenRuleExtensions.ApplyTokenRules(collection, null, rules); // Assert result.Should().BeSameAs(collection); }