N08 - PowerPoint PPT Presentation

About This Presentation
Title:

N08

Description:

tdd tdd ! – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 13
Provided by: 21079
Category:
Tags: n08 | nunit

less

Transcript and Presenter's Notes

Title: N08


1
TDD ??
??? TDD ??????!
2
TDD ?? ???
  • ???????????? 1?? PC ??????????
  • ????????????
  • 5 10??????????????????? ? ??? ?? ? ??????
    ????? ? ???
  • ????????????????? ??????????????????????????????
    ??????????? ????????????????
  • ???????? GREEN ??????????????????????????? RED
    ?????????????????????? (RED ??????????????????????
    ?)
  • ??????????????????????????????????????????????????
    ?????

3
?? ???????
  • ?????
  • ????????
  • ??????
  • ??????
  • ???? / ???????
  • ?? ?????
  • ???????? !!

?????????
4
???? ???
  • ??? 5????
  • ??????? 1????RED?GREEN ??
  • ????????????????
  • ?????????????????
  • ???????????????????????????????????????????????

5
??????
  • ????????????????
  • ?????????????????????????
  • ???????????????????????????

6
???15 ? ??
  • FizzBuzz by VB NUnit
  • ??????????? (????????????)?
  • ????? (?????)?
  • ?? If ???????????????????????????????????????????
    etc.
  • ? ?????????????????????TDD????????????????????????
    ????????

7
Public Shared Function Say(ByVal n As Integer) As
String Dim s As String n.ToString()
'??????????????? If (n gt 0) Then If (n Mod 3
0) Then If (n Mod 5 0) Then 'If
????????????? s "FizzBuzz" Else s
"Fizz" End If ElseIf (n Mod 5 0)
Then If (n Mod 3 0) Then '????????????????
s "FizzBuzz" Else s "Buzz"
'?????????????????? End If End
If Else Throw New ArgumentOutOfRangeException()
? End If Return s End Function
8
????????
  • GREEN ??????????????
  • ?????? ?????????? ? ????????!
    ? ??????? ? ?????!
  • GREEN ?????????????!

9
?? ???????? ????
http//www.refactoring.com/catalog/index.html
  • ???????
  • ??????? / ??????
  • ??????????? / ????????
  • ????????????????
  • ??????? (??????)?
  • ????????? (???????)?
  • ??????????????
  • ???? / ????? / ????????
  • ?????? / ??????
  • ?????? (??????) ???
  • ???????
  • ????????????
  • ????????????????????
  • ????????????? (?????)?
  • Enum ???????????????????
  • ????????
  • ?????????????
  • ???????
  • ???????? (????????????)?
  • ???????????????????
  • ????????????????????
  • ???????????
  • ????????????
  • ????????
  • ????? / ??
  • ???????????
  • ???????????
  • ???????
  • Factory Method ???????????????
    ?????????!

10
?? ????
  • ??????????????!
  • ??????????? ?????????????????????!
  • ???????????????????? ?????????????????????

11
?? TDD ???
http//yattom.jp/trac/public/wiki/TDDByUncleBobMar
tin
  • RED ? GREEN??????????????????????????????????????
    ???
  • ????(?????)??????????????????????????????????????
    ??????????????
  • ????????????????????1????????????????????????????
    ??

12
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com