コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }