public void BasicReplacement( )
        {
            var stream = new MemoryStream();
            var config = new TestMstscConfig();
            config.Update( new[] {
                "abc:s:def",
                "key:s:foo",
                "abc:s:def:xyz",
                "abc:s:",
                "abc::",
                "abc:",
                "abc",
                "" },
                new MstscSettings(), stream );

            var reader = new StreamReader( new MemoryStream( stream.ToArray() ) );
            Assert.AreEqual(
                "abc:s:def\r\n" +
                "key:s:value\r\n" +
                "abc:s:def:xyz\r\n" +
                "abc:s:\r\n" +
                "abc::\r\n" +
                "abc:\r\n" +
                "abc\r\n" +
                "\r\n",
                reader.ReadToEnd() );
        }
        public void CaseInsensitive( )
        {
            var stream = new MemoryStream();
            var config = new TestMstscConfig();
            config.Update( new[] {
                "KEY:s:foo" },
                new MstscSettings(), stream );

            var reader = new StreamReader( new MemoryStream( stream.ToArray() ) );
            Assert.AreEqual(
                "KEY:s:value\r\n",
                reader.ReadToEnd() );
        }
        public void AddKey( )
        {
            var stream = new MemoryStream();
            var config = new TestMstscConfig();
            config.Update( new[] {
                "abc:s:def" },
                new MstscSettings(), stream );

            var reader = new StreamReader( new MemoryStream( stream.ToArray() ) );
            Assert.AreEqual(
                "abc:s:def\r\n" +
                "key:s:value\r\n",
                reader.ReadToEnd() );
        }
        public void WriteInUnicode( )
        {
            var stream = new MemoryStream();
            var config = new TestMstscConfig();
            config.Update( new string[0],
                new MstscSettings(), stream );

            string readConfig = System.Text.Encoding.Unicode.GetString( stream.ToArray() );
            Assert.IsTrue( 0 == string.Compare( "key:s:value\r\n", readConfig ) );
        }