Exemplo n.º 1
0
        public void AutoGetCombinedKey_ObjectExt_ShouldOk()
        {
            var parser = CombineKeyParser.NewForTest();
            var foo    = new CombineKeyFoo();

            parser.AutoGetCombinedKey(foo, "A", "b").ShouldEqual("A=a&b=1");
        }
Exemplo n.º 2
0
        public void AutoSetCombinedKey_ObjectExt_ShouldOk()
        {
            var parser = CombineKeyParser.NewForTest();
            var foo    = new CombineKeyFoo();

            parser.AutoSetCombinedKey(foo, "A", "aa");
            parser.AutoSetCombinedKey(foo, "B", 11);
            foo.A.ShouldEqual("aa");
            foo.B.ShouldEqual(11);
        }