//
//  NetworkDecryptionTests.swift
//  nRFMeshProvision_Tests
//
//  Created by Mostafa Berg on 19/03/2018.
//  Copyright © 2018 CocoaPods. All rights reserved.
//

import XCTest
import nRFMeshProvision

class NetworkDecryptionTests: XCTestCase {

    func testNetrowkDecryption() {
//        let testIncomingData = Data([0x79, 0x83, 0x07, 0x4B, 0x4F, 0x05, 0x79, 0xB9, 0x77,
//                                     0x19, 0xED, 0x5B, 0x85, 0x97, 0x84, 0xC1, 0x98, 0xFF,
//                                     0x97, 0xD4, 0x15])
//        let testIVIndex = Data([0x00, 0x00, 0x00, 0x00])
//        let testNetKey = Data([0x4B, 0xA1, 0x00, 0xCA, 0xFA, 0x10, 0x47, 0x17,
//                               0x9E, 0x92, 0x8A, 0xBE, 0x79, 0xB8, 0x4C, 0xDC])
//        let testState = MeshState(withNodeList: [],
//                                  netKey: testNetKey,
//                                  keyIndex: Data([0x00]),
//                                  IVIndex: testIVIndex,
//                                  globalTTL: 0,
//                                  unicastAddress: Data([0x00, 0x01]),
//                                  flags: Data([0x00]),
//                                  andName: "Test Network")
//        let testStateManager = MeshStateManager.init(withState: testState)
//        var networkLayer = NetworkLayer(withStateManager: testStateManager)
//        networkLayer.incomingPDU(testIncomingData)
    }
}
