         
         
     }
-
-*/
-    
+    */
+
     internal class Block : NSObject, NSCoding {
-        
+
         var used: Bool = true
         var obj: AnyObject? = nil
         

import SOGraphDB

class EncodingTests: XCTestCase {

    /**
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }

    func testExample() {
        // This is an example of a functional test case.
        XCTAssert(true, "Pass")
    }

    func testPerformanceExample() {
        // This is an example of a performance test case.
        self.measureBlock() {
            // Put the code you want to measure the time of here.
        }
    }


    func testNodeCoding() {
        var aNode = Node()
        

        println("Property encoding size is: \(data.length)")
    }
    
    func testCodingNode() {
        
        var node = Node(testdata: true)
        var aObj = Block(used: true)
        aObj.obj = node
        
        
        var data = FastCoder.dataWithRootObject(aObj)
        //var bObj = FastCoder.objectWithData(data) as Node
        
        XCTAssertTrue(data.length == 152, "wrong size")
        println("Node encoding size is: \(data.length)")
    }
    
    func testCodingRelationship() {
        
        var obj = Relationship(testdata: true)
        var aObj = Block(used: true)
        aObj.obj = obj
        
        
        var data = FastCoder.dataWithRootObject(aObj)
        //var bObj = FastCoder.objectWithData(data) as Node
        
        XCTAssertTrue(data.length == 240, "wrong size")
        println("Node encoding size is: \(data.length)")
    }
    
    func testCodingProperty1() {
        
        var obj = Property()
        obj.stringValue = testStringUTF8U1
        
        var aObj = Block(used: true)
        aObj.obj = obj
        
        
        var data = FastCoder.dataWithRootObject(aObj)
        //var bObj = FastCoder.objectWithData(data) as Node
        
        XCTAssertTrue(data.length == 163, "wrong size")
        println("Node encoding size is: \(data.length)")
    }
    
    
    /**
    func testPropertyCoding() {
    
    XCTAssert(true, "Pass")
    }
    
    */

}
