message: more testing of element insert
diff: @@ -414,7 +414,18 @@ describe("iModel", () => {
  assert.equal(newTestElem.classFullName, testElem.classFullName);
  newTestElem.integerProperty1 = 999;
  assert.isTrue(testElem.arrayOfPoint3d[0].isAlmostEqual(newTestElem.arrayOfPoint3d[0]));
  +
  + const loc1 = {street: "Elm Street", city: {name: "Downingtown", state: "PA"}};
  +// const loc2 = {street: "Oak Street", city: {name: "Downingtown", state: "PA"}};
  +// const loc3 = {street: "Chestnut Street", city: {name: "Philadelphia", state: "PA"}};
  +// const arrayOfStructs = [loc2, loc3];
  + newTestElem.location = loc1;
  +// newTestElem.arrayOfStructs = arrayOfStructs;
  + newTestElem.dtUtc = new Date("2015-03-25");
  + newTestElem.p3d = new Point3d(1, 2, 3);
  +
  const newTestElemId = await imodel3.elements.insertElement(newTestElem);
  +
  assert.isTrue(newTestElemId.isValid(), "insert worked");
  const newTestElemFetched = await imodel3.elements.getElement(newTestElemId);
  @@ -424,6 +435,10 @@ describe("iModel", () => {
  assert.isDefined(newTestElemFetched.integerProperty1);
  assert.equal(newTestElemFetched.integerProperty1, newTestElem.integerProperty1);
  assert.isTrue(newTestElemFetched.arrayOfPoint3d[0].isAlmostEqual(newTestElem.arrayOfPoint3d[0]));
  + assert.equal(JSON.stringify(newTestElem.location), JSON.stringify(loc1));
  +// assert.equal(JSON.stringify(newTestElem.arrayOfStructs), JSON.stringify(arrayOfStructs));
  + assert.equal(JSON.stringify(newTestElemFetched.dtUtc), JSON.stringify(newTestElem.dtUtc));
  + assert.isTrue(newTestElemFetched.p3d.isAlmostEqual(newTestElem.p3d));
  imodel3.closeDgnDb();
  });
  