Example #1
0
        public void check_cloning()
        {
            IniParserConfiguration config1 = new IniParserConfiguration();

            config1.AllowDuplicateKeys = true;
            config1.CommentString      = "/";

            Assert.That(config1.AllowDuplicateKeys, Is.True);
            Assert.That(config1.CommentString, Is.EqualTo("/"));

            IniParserConfiguration config2 = config1.Clone();

            Assert.That(config2.AllowDuplicateKeys, Is.True);
            Assert.That(config2.CommentString, Is.EqualTo("/"));

            config1.CommentString = "#";
            Assert.That(config2.CommentString, Is.EqualTo("/"));
        }