//
//  KataStringCalculatorSwiftUnitTests.swift
//  KataStringCalculatorSwiftUnitTests
//
//  Created by Pedro Vicente on 14/10/15.
//  Copyright © 2015 Pedro Vicente Gómez Sánchez. All rights reserved.
//

import XCTest

class KataStringCalculatorSwiftUnitTests: XCTestCase {
    
    func testShouldReturnZeroIfTheStringIsEmpty() {
        let stringCalculator = givenAStringCalculator()
        
        let sum = stringCalculator.add("")
        
        XCTAssertEqual(0, sum)
    }
    
    func testShouldReturnTheContentOfTheStringIfTheInputContainsJustOneNumber() {
        let stringCalculator = givenAStringCalculator()
        
        let sum = stringCalculator.add("1")
        
        XCTAssertEqual(1, sum)
    }
    
    func testShouldReturnTheContentOfTheStringIfTheInputContainsJustOneNumberWithMoreThanOneDigit() {
        let stringCalculator = givenAStringCalculator()
        
        let sum = stringCalculator.add("11")
        
        XCTAssertEqual(11, sum)
    }
    
    private func givenAStringCalculator() -> StringCalculator {
        return StringCalculator()
    }
    
}

//
//  KataStringCalculatorSwiftUnitTests.swift
//  KataStringCalculatorSwiftUnitTests
//
//  Created by Pedro Vicente on 14/10/15.
//  Copyright © 2015 Pedro Vicente Gómez Sánchez. All rights reserved.
//

import XCTest

class KataStringCalculatorSwiftUnitTests: XCTestCase {
    
    func testShouldReturnZeroIfTheStringIsEmpty() {
        let stringCalculator = givenAStringCalculator()
        
        let sum = stringCalculator.add("")
        
        XCTAssertEqual(0, sum)
    }
    
    func testShouldReturnTheContentOfTheStringIfTheInputContainsJustOneNumber() {
        let stringCalculator = givenAStringCalculator()
        
        let sum = stringCalculator.add("1")
        
        XCTAssertEqual(1, sum)
    }
    
    private func givenAStringCalculator() -> StringCalculator {
        return StringCalculator()
    }
    
}

--- 
+++ 
@@ -26,6 +26,14 @@
         XCTAssertEqual(1, sum)
     }
     
+    func testShouldReturnTheContentOfTheStringIfTheInputContainsJustOneNumberWithMoreThanOneDigit() {
+        let stringCalculator = givenAStringCalculator()
+        
+        let sum = stringCalculator.add("11")
+        
+        XCTAssertEqual(11, sum)
+    }
+    
     private func givenAStringCalculator() -> StringCalculator {
         return StringCalculator()
     }
Add another test case related with the just one number scenario but with more than one digit
