//
//  GetGlucosePageMessageBodyTests.swift
//  RileyLink
//
//  Created by Timothy Mecklem on 10/19/16.
//  Copyright © 2016 LoopKit Authors. All rights reserved.
//

import XCTest
@testable import MinimedKit

class GetGlucosePageMessageBodyTests: XCTestCase {
    
    func testTxDataEncoding() {
        let messageBody = GetGlucosePageMessageBody(pageNum: 13)
        
        XCTAssertEqual(messageBody.txData.subdata(in: 0..<5).hexadecimalString, "040000000d")
    }
    
}
