public void TestReadNonexistentProjectFile()
        {
            String testPrjFile = GetTestPrjFileName();
            var    binFilePersistenceConfig = new BinFilePersistenceConfig(testPrjFile, GetTestContextFileName());

            System.IO.File.Delete(testPrjFile);
            Assert.IsFalse(System.IO.File.Exists(testPrjFile));

            var fp         = new BinFilePersistence(binFilePersistenceConfig);
            var newPrjList = fp.LoadProjects();

            Assert.AreEqual(0, newPrjList.Count);
        }
        public void TestWriteProjectFile()
        {
            var binFilePersistenceConfig = new BinFilePersistenceConfig(GetTestPrjFileName(), GetTestContextFileName());
            var fp      = new BinFilePersistence(binFilePersistenceConfig);
            var prjList = new Collection <Project>();
            var prj     = new Project("Test Project 1");

            prjList.Add(prj);
            fp.SaveProjects(prjList);

            var newPrjList = fp.LoadProjects();

            Assert.AreEqual(1, newPrjList.Count);
            var newPrj = newPrjList[0];

            Assert.AreEqual("Test Project 1", newPrj.ProjectName);
        }