public void Should_Support_Types(string type, object value, string expectedString) { var id = _idGenerator++; var vertexLabel = "vertex" + id; var propertyName = "prop" + id; GraphTests.IncludeAndQueryVertex(vertexLabel, propertyName, type, value, expectedString); }
private void TestInsertSelectProperty <T>(string type, T value, bool verifyToString = true) { var id = _idGenerator++; var vertexLabel = "vertex" + id; var propertyName = "prop" + id; var vertex = GraphTests.IncludeAndQueryVertex(vertexLabel, propertyName, type, value, value.ToString(), verifyToString); var propObject = vertex.GetProperty(propertyName).Value.To <T>(); Assert.AreEqual(value, propObject); }