Example #1
0
            public void Test3()
            {
                var erg = Woerterbuch.Start("a=1;;b=2");

                Assert.AreEqual(erg["a"], "1");
                Assert.AreEqual(erg["b"], "2");
            }
Example #2
0
            public void Test2()
            {
                var erg = Woerterbuch.Start("a=1;a=2;c=3");

                Assert.AreEqual(erg["a"], "2");
                Assert.AreEqual(erg["c"], "3");
            }
Example #3
0
            public void Test8()
            {
                var erg = Woerterbuch.Start("a=1;b=2;c=;a=5;;c=3;d=1;b=2;z=Ich werde gezwungen CleanCode zu schreiben");

                Assert.AreEqual(erg["a"], "5");
                Assert.AreEqual(erg["b"], "2");
                Assert.AreEqual(erg["c"], "3");
                Assert.AreEqual(erg["d"], "1");
                Assert.AreEqual(erg["z"], "Ich werde gezwungen CleanCode zu schreiben");
            }
Example #4
0
            public void Test7()
            {
                var erg = Woerterbuch.Start("a==1");

                Assert.AreEqual(erg["a"], "=1");
            }
Example #5
0
            public void Test6()
            {
                var erg = Woerterbuch.Start("");

                Assert.AreEqual(erg.Count, 0);
            }