コード例 #1
0
ファイル: dataTest.cs プロジェクト: taoxiease/asegrp
 public void renameObjectPropertyTest()
 {
     defineObjectPropertyTest();
     API parent = _api;
     data target = new data(parent);
     string obj_type = Constants.TestType;
     string prop_name = Constants.TestObjectPropertyName;
     string new_name = Constants.TestObjectPropertyNewName;
     target.renameObjectProperty(obj_type, prop_name, new_name);
     var typ = target.getObjectType(obj_type);
     Assert.AreEqual(typ[0].name, Constants.TestObjectPropertyNewName);
 }
コード例 #2
0
ファイル: dataTest.cs プロジェクト: taoxiease/asegrp
 public void getObjectTypeTest()
 {
     defineObjectPropertyTest();
     API parent = _api;
     data target = new data(parent);
     string obj_type = Constants.TestType;
     IList<object_property_info> expected = new List<object_property_info>
                                                {
                                                    new object_property_info
                                                        {
                                                            name = Constants.TestObjectPropertyName,
                                                            data_type = 2,
                                                            index_type = 0
                                                        }
                                                };
     IList<object_property_info> actual;
     actual = target.getObjectType(obj_type);
     Assert.AreEqual(expected[0].name, actual[0].name);
     Assert.AreEqual(expected[0].data_type, actual[0].data_type);
     Assert.AreEqual(expected[0].index_type, actual[0].index_type);
 }