public void TestMergeDoNotOverride()
        {
            IRRuleTokenContainer firstPart  = tokenizer.Tokenize("FREQ=WEEKLY;INTERVAL=1");
            IRRuleTokenContainer secondPart = tokenizer.Tokenize("FREQ=YEARLY;INTERVAL=1;BYMONTHDAY=1;BYSETPOS=1");

            // Merge secondPart into firstPart
            firstPart.Merge(secondPart);

            Assert.NotNull(firstPart.GetFreq());
            Assert.AreNotEqual(secondPart.GetFreq(), firstPart.GetFreq());
            Assert.AreNotEqual(secondPart.GetInterval(), firstPart.GetInterval());
        }
        public void TestMergeSimple()
        {
            IRRuleTokenContainer firstPart  = tokenizer.Tokenize("FREQ=WEEKLY;INTERVAL=1");
            IRRuleTokenContainer secondPart = tokenizer.Tokenize("FREQ=YEARLY;INTERVAL=1;BYMONTHDAY=1;BYSETPOS=1");

            // Merge secondPart into firstPart
            firstPart.Merge(secondPart);

            Assert.NotNull(firstPart.GetFreq());
            Assert.NotNull(firstPart.GetByMontDay());
            Assert.NotNull(firstPart.GetBySetPos());
            Assert.NotNull(firstPart.GetByMontDay());

            Assert.AreEqual(secondPart.GetByMontDay(), firstPart.GetByMontDay());
            Assert.AreEqual(secondPart.GetBySetPos(), firstPart.GetBySetPos());
        }