Ejemplo n.º 1
0
        public void TestSettingsRestoreChangeNotEqualsOrig()
        {
            GranitSettings orig      = CreateSettings();
            var            s         = orig.ToJson();
            var            settings2 = GranitSettings.LoadFromText(s);

            settings2.LastOpenedFilePaths.Clear();
            Assert.IsFalse(orig.Equals(settings2));
        }
Ejemplo n.º 2
0
        public void TestSettingsRestoreEqualsOrig()
        {
            GranitSettings orig = CreateSettings();
            var            s    = orig.ToJson();

            var settings2 = GranitSettings.LoadFromText(s);

            Assert.IsTrue(orig.Equals(settings2));
        }
Ejemplo n.º 3
0
        public void TestSettingsRestoreChangeNotComparesToOrig()
        {
            var orig      = CreateSettings();
            var s         = orig.ToJson();
            var settings2 = GranitSettings.LoadFromText(s);

            settings2.LastOpenedFilePaths.Clear();
            Assert.IsFalse(0 == orig.CompareTo(settings2));
        }
Ejemplo n.º 4
0
        public void TestSettingsRestoreComparesToOrig()
        {
            var orig = CreateSettings();
            var s    = orig.ToJson();

            var settings2 = GranitSettings.LoadFromText(s);

            Assert.IsTrue(0 == orig.CompareTo(settings2));
        }