Guest User

Untitled

a guest
Dec 15th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class ExampleTest: XCTestCase {
  2. func test_onInitialisation_getCurrentValue_returns_zero() {
  3. let object = Object()
  4. XCTAssertEqual(object.getCurrentValue(), 0)
  5. }
  6. }
  7.  
  8. or
  9.  
  10. class ExampleTestCase: XCTestCase {
  11.  
  12. var object: Object!
  13.  
  14. override func setUp() {
  15. super.setUp()
  16. object = Object()
  17. }
  18.  
  19. override func tearDown() {
  20. object = nil
  21. super.tearDown()
  22. }
  23. }
Add Comment
Please, Sign In to add comment