public void PagesViewedPersonalisationGroupCriteria_MatchesVisitor_WithDefinitionForPagesNotViewedNotAll_WithPagesNotViewed_ReturnsTrue()
        {
            // Arrange
            var mockPagesViewedProvider = MockPagesViewedProvider();
            var criteria = new PagesViewedPersonalisationGroupCriteria(mockPagesViewedProvider.Object);
            var definition = string.Format(DefinitionFormat, "NotViewedAll", "1000,1001");

            // Act
            var result = criteria.MatchesVisitor(definition);

            // Assert
            Assert.IsTrue(result);
        }
        public void PagesViewedPersonalisationGroupCriteria_MatchesVisitor_WithInvalidDefinition_ThrowsException()
        {
            // Arrange
            var mockPagesViewedProvider = MockPagesViewedProvider();
            var criteria = new PagesViewedPersonalisationGroupCriteria(mockPagesViewedProvider.Object);
            var definition = "invalid";

            // Act
            criteria.MatchesVisitor(definition);
        }
        public void PagesViewedPersonalisationGroupCriteria_MatchesVisitor_WithEmptyDefinition_ThrowsException()
        {
            // Arrange
            var mockPagesViewedProvider = MockPagesViewedProvider();
            var criteria = new PagesViewedPersonalisationGroupCriteria(mockPagesViewedProvider.Object);

            // Act
            criteria.MatchesVisitor((string)null);
        }