public void EmptyDestinationDirTest()
        {
            FWXmlConfigData xmlNew = new FWXmlConfigData(_xml);

            xmlNew.DestinationDir = "";
            xmlNew.Serialize(FWConfigData.Instance.ConfigFilePath);

            //load again
            bool bResult = FWConfigData.Instance.Initialize();

            Assert.AreEqual(false, bResult);
        }
        public void CheckDefaultMaxDegreeOfParallelism()
        {
            FWXmlConfigData xmlNew = new FWXmlConfigData(_xml);

            xmlNew.MaxDegreeOfParallelism = "test";
            xmlNew.Serialize(FWConfigData.Instance.ConfigFilePath);

            //load again
            FWConfigData.Instance.Initialize();

            Assert.AreEqual(1, FWConfigData.Instance.MaxDegreeOfParallelism);
        }
 public void Cleanup()
 {
     _xml.Serialize(FWConfigData.Instance.ConfigFilePath);
 }