示例#1
0
 public void setHashValueTest()
 {
     createObjectTest();
     API parent = _api;
     data target = new data(parent);
     string obj_type = Constants.TestType;
     string key = Constants.TestHashKey;
     string value = Constants.TestHashValue;
     string prop_name = Constants.TestObjectPropertyName;
     long actual = target.setHashValue(obj_type, key, value, prop_name);
     _hashID = actual;
     //Assert.IsInstanceOfType(actual, typeof(long));
     Assert.IsTrue(actual>0);
     var ret = target.getHashValue(Constants.TestType, Constants.TestHashKey, Constants.TestObjectPropertyName);
     Assert.AreEqual(ret, Constants.TestHashValue);
 }