public void ChangeSetSerializationTest()
        {
            ChangesetStorage storage = new ChangesetStorage(Filename);
            CvsChange change = CreateSingleChange("test.ext", 0, "Update to TK-01001");
            storage.PersistChangeset(new CvsChangeSet(change.Author, "TestId", change.ChangeDate, change.Message));
            storage.Flush();

            CvsChangeSet changeSet = storage.GetChangeset("TestId");
            Assert.IsNotNull(changeSet);
            Assert.IsTrue(changeSet.IsPersistent);

            storage.PersistChangeset(new CvsChangeSet(change.Author, "TestId2", change.ChangeDate, change.Message));

            changeSet = storage.GetChangeset("TestId2");
            Assert.IsNotNull(changeSet);
            Assert.IsFalse(changeSet.IsPersistent);
        }
        public void XmlFileCreationTest()
        {
            ChangesetStorage storage = new ChangesetStorage(Filename);
            CvsChange change = CreateSingleChange("test.ext", 0, "Update to TK-01001");
            CvsChangeSet changeSet = new CvsChangeSet(change.Author, "TestId", change.ChangeDate, change.Message);
            changeSet.Changes.Add(change);
            storage.PersistChangeset(changeSet);
            storage.PersistChangeset(new CvsChangeSet(change.Author, "TestId2", change.ChangeDate, change.Message));
            storage.Flush();

            XmlDocument document = new XmlDocument();
            document.Load(Filename);

            XmlNodeList changesetNodes = document.SelectNodes("//changesets/changeset");
            Assert.AreEqual(changesetNodes.Count, 2);

            XmlNodeList changeNodes = changesetNodes[0].SelectNodes("change");
            Assert.AreEqual(changeNodes.Count, 1);
        }