// // JuickTests.m // JuickTests // // Created by Vitaly Takmazov on 10.02.2021. // Copyright © 2021 com.juick. All rights reserved. // @import UIKit; #import #import "Message.h" @interface JuickTests : XCTestCase @end @implementation JuickTests - (void)setUp { // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. } - (void)testMessageDeserialization { NSString *jsonData = @"{\"service\": true }"; NSError *jsonError; NSDictionary *json = [NSJSONSerialization JSONObjectWithData:[jsonData dataUsingEncoding:NSUTF8StringEncoding] options:0 error:&jsonError]; Message *msg = [Message fromJSON:json]; XCTAssertTrue(msg.service); XCTAssertFalse(msg.unread); } - (void)testPerformanceExample { // This is an example of a performance test case. [self measureBlock:^{ // Put the code you want to measure the time of here. }]; } @end