Пример #1
0
        internal RelationshipReference RelationshipReference = VirtualValues.relationship(11L);            // Should equal relationshipProxyValue when converted

//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldNotTouchValuesThatDoNotNeedConversion()
        public virtual void ShouldNotTouchValuesThatDoNotNeedConversion()
        {
            // Given
            ListValue nodeList         = VirtualValues.list(NodeProxyValue, DirectNodeValue);
            ListValue relationshipList = VirtualValues.list(RelationshipProxyValue, DirectRelationshipValue);
            MapValue  nodeMap          = VirtualValues.map(new string[] { "a", "b" }, new AnyValue[] { NodeProxyValue, DirectNodeValue });
            MapValue  relationshipMap  = VirtualValues.map(new string[] { "a", "b" }, new AnyValue[] { RelationshipProxyValue, DirectRelationshipValue });

            // Verify
            VerifyDoesNotTouchValue(NodeProxyValue);
            VerifyDoesNotTouchValue(RelationshipProxyValue);
            VerifyDoesNotTouchValue(DirectNodeValue);
            VerifyDoesNotTouchValue(DirectRelationshipValue);
            VerifyDoesNotTouchValue(nodeList);
            VerifyDoesNotTouchValue(relationshipList);
            VerifyDoesNotTouchValue(nodeMap);
            VerifyDoesNotTouchValue(relationshipMap);

            // This is not an exhaustive test since the other cases are very uninteresting...
            VerifyDoesNotTouchValue(Values.booleanValue(false));
            VerifyDoesNotTouchValue(Values.stringValue("Hello"));
            VerifyDoesNotTouchValue(Values.longValue(42L));
            // ...
        }
Пример #2
0
 internal static BooleanValue AsValue(long long0)
 {
     return(Values.booleanValue(AsValueRaw(long0)));
 }
Пример #3
0
 private BooleanValue ReadBoolean()
 {
     return(Values.booleanValue(PropertyBlock.fetchByte(CurrentBlock()) == 1));
 }