Esempio n. 1
0
        public void TestFrozenCopy()
        {
            var settings         = new MongoServerSettings();
            var frozenCopy       = settings.FrozenCopy();
            var secondFrozenCopy = frozenCopy.FrozenCopy();

            Assert.AreNotSame(settings, frozenCopy);
            Assert.AreSame(frozenCopy, secondFrozenCopy);
            Assert.AreEqual(false, settings.IsFrozen);
            Assert.AreEqual(true, frozenCopy.IsFrozen);
        }