Пример #1
0
        public void SaveMethodTest()
        {
            var regAppConfig = new RegistryApplicationConfigurator(Key)
            {
                Language   = "ukrainian",
                ReaderPath = @"C:\Program Files\TotalCommander\TOTALCMD64.EXE",
                DataBaseConnectionString = "conectionSTR"
            };


            regAppConfig.Save();

            regAppConfig = new RegistryApplicationConfigurator(Key);

            Assert.AreEqual(regAppConfig.Language, "ukrainian");
            Assert.AreEqual(regAppConfig.ReaderPath, @"C:\Program Files\TotalCommander\TOTALCMD64.EXE");
            Assert.AreEqual(regAppConfig.DataBaseConnectionString, "conectionSTR");
        }
Пример #2
0
        public void ConstructorTest()
        {
            var regAppConfig = new RegistryApplicationConfigurator(Key);

            Assert.IsNotNull(regAppConfig);
        }