Add test case method

ต่อไปจะเป็นการเริ่มเขียนคำสั่งให้ทำการทดสอบ ก็คือเป็นการ Method เข้าไปใน Test class นั่นเอง

  1. เพิ่ม method เข้าไปใน AdderTest

    func test_add_with_1_1_should_return_2(){
    }
    
  2. สังเกตว่าสามรถทำการรันเทสที่ method นี้ได้ด้วย เช่นเดียวกัน

results matching ""

    No results matching ""