Esempio n. 1
0
 public void SetUp()
 {
     robj = new ReflectObject()
     {
         IntField       = 1,
         IntProperty    = 1,
         StringField    = "String",
         StringProperty = "String",
         NameValues     = new NameValueCollection {
             { "Key1", "Value1" },
             { "Key2", "Value2" },
             { "Key3", "Value3" }
         },
         IntKeyDictionary = new Dictionary <int, string> {
             { 1, "Value1" },
             { 2, "Value2" },
             { 3, "Value3" }
         },
         StringKeyDictionary = new Dictionary <string, string> {
             { "Key1", "Value1" },
             { "Key2", "Value2" },
             { "Key3", "Value3" }
         }
     };
 }
Esempio n. 2
0
        public void SetUp()
        {
            robj = new ReflectObject()
            {
                IntField = 1,
                IntProperty = 1,
                StringField = "String",
                StringProperty = "String",
                NameValues = new NameValueCollection {
                    {"Key1", "Value1"},
                    {"Key2", "Value2"},
                    {"Key3", "Value3"}
                },
                IntKeyDictionary = new Dictionary<int, string> {
                    {1, "Value1"},
                    {2, "Value2"},
                    {3, "Value3"}
                },
                StringKeyDictionary = new Dictionary<string, string> {
                    {"Key1", "Value1"},
                    {"Key2", "Value2"},
                    {"Key3", "Value3"}
                }

            };
        }