コード例 #1
0
        public void CommonPreferences_ReturnsFilePreferenceStoreInCommonAppData()
        {
            var manager = new FilePreferenceManager();

            var preferenceStore = (FilePreferenceStore)manager.CommonPreferences;

            Assert.AreEqual(SpecialPathPolicy.For("Preferences").GetCommonApplicationDataDirectory(), preferenceStore.PreferenceStoreDir);
        }
コード例 #2
0
        public void CommonPreferences_ReturnSameInstanceEachTime()
        {
            var manager = new FilePreferenceManager();

            Assert.AreSame(manager.CommonPreferences, manager.CommonPreferences);
        }
コード例 #3
0
        public void RoamingUserPreferences_ReturnSameInstanceEachTime()
        {
            var manager = new FilePreferenceManager();

            Assert.AreSame(manager.RoamingUserPreferences, manager.RoamingUserPreferences);
        }