AppcircleTests.m 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // AppcircleTests.m
  3. // AppcircleTests
  4. //
  5. // Created by Dogan Ekici on 4.10.2019.
  6. // Copyright © 2019 Dogan Ekici. All rights reserved.
  7. //
  8. #import <XCTest/XCTest.h>
  9. @interface AppcircleTests : XCTestCase
  10. @end
  11. @implementation AppcircleTests
  12. - (void)setUp {
  13. // Put setup code here. This method is called before the invocation of each test method in the class.
  14. }
  15. - (void)tearDown {
  16. // Put teardown code here. This method is called after the invocation of each test method in the class.
  17. }
  18. - (void)testExample {
  19. // This is an example of a functional test case.
  20. // Use XCTAssert and related functions to verify your tests produce the correct results.
  21. }
  22. - (void)testArrayCount {
  23. NSArray *array = [[NSArray alloc] initWithObjects:@"First",@"Second", nil];
  24. XCTAssertEqual(array.count, 2);
  25. }
  26. - (void)testArrayFirstObject {
  27. NSArray *array = [[NSArray alloc] initWithObjects:@"First",@"Second", nil];
  28. XCTAssertEqual(array.firstObject, @"First");
  29. }
  30. - (void)testArrayLastObject {
  31. NSArray *array = [[NSArray alloc] initWithObjects:@"First",@"Second", nil];
  32. XCTAssertEqual(array.lastObject, @"Second");
  33. }
  34. - (void)testType {
  35. NSArray *array = [[NSArray alloc] initWithObjects:@"First",@"Second", nil];
  36. XCTAssert([array isKindOfClass:[NSArray class]]);
  37. }
  38. - (void)testPerformanceExample {
  39. // This is an example of a performance test case.
  40. [self measureBlock:^{
  41. // Put the code you want to measure the time of here.
  42. }];
  43. }
  44. @end