Permalink
Browse files

Add count property

Right now we just want to add the minimal code to get the app to compile. We don't want to add any behavior to the class yet; we'll wait until we have a unit test for it to do that. The simplest way to get a count property to compile is to just add a simple stored property. An initial value of zero seems reasonable.

Red: Value of type 'MessageStore' has no member 'create'
  • Loading branch information...
CodingItWrong committed Jan 2, 2018
1 parent 07ff21d commit d724e0711385ce4070f444f012d92b65b79d9516
Showing with 2 additions and 0 deletions.
  1. +2 −0 LearnTDDInCocoaTouch/MessageStore.swift
@@ -2,4 +2,6 @@ import Foundation
class MessageStore {
var count = 0
}

0 comments on commit d724e07

Please sign in to comment.