import XCTest
import ToDoRedux

class ToDoTests: ToDoReduxTests {
    private var todo: ToDo!

    override func setUp() {
        super.setUp()

        store.dispatch(ToDoActions.add(title: "Buy milk", notes: "", tags: []))
        todo = store.state.todos.first!
    }

    func testAddedToDo() {
        XCTAssertEqual(store.state.todos.count, 1)

        let todo = store.state.todos.first!

        XCTAssertEqual(todo.title, "Buy milk")
    }

    func testRemoveToDo() {
        store.dispatch(ToDoActions.remove(todo: todo))

        XCTAssertTrue(store.state.todos.isEmpty)
    }
}

import XCTest
import ToDoRedux

class ToDoTests: ToDoReduxTests {
    override func setUp() {
        super.setUp()

        store.dispatch(ToDoActions.add(title: "Buy milk", notes: "", tags: []))
    }

    func testAddedToDo() {
        XCTAssertEqual(store.state.todos.count, 1)

        let todo = store.state.todos.first!

        XCTAssertEqual(todo.title, "Buy milk")
    }
}

--- 
+++ 
@@ -2,10 +2,13 @@
 import ToDoRedux
 
 class ToDoTests: ToDoReduxTests {
+    private var todo: ToDo!
+
     override func setUp() {
         super.setUp()
 
         store.dispatch(ToDoActions.add(title: "Buy milk", notes: "", tags: []))
+        todo = store.state.todos.first!
     }
 
     func testAddedToDo() {
@@ -15,4 +18,10 @@
 
         XCTAssertEqual(todo.title, "Buy milk")
     }
+
+    func testRemoveToDo() {
+        store.dispatch(ToDoActions.remove(todo: todo))
+
+        XCTAssertTrue(store.state.todos.isEmpty)
+    }
 }
Add a test for removing todos
