????1. ??????????С??? ??????????? ?κδ??? Check-in ??????e????в?????????????????. ????????????????????????????????.
????2. ????????????????/????????????????????????е?? ??й??????????????????????????. ??????????????????????????????????.
????3. ????????????????????????????????????? ????????????????????????????????????????????????????.
????4. ????????????????е??????и?????????? ???????????????и?????? ??????Щ????δ?????.
????5. ?????????????????????????????????? Check-in ?????????????????? ??????д??? Check-in ???в?????????????????.
????6. ???????????????????????? (Class) ?????. ??? "??????" ???????????? "??????"?? ????? "??????" ????????????????????. ????????????????????????????????????????????? ????????????Ч???????. ?????????? (???: ??????/?????????????) ????????????? ????????????????? ?????????ú????.
????7. ????????????????????????в???. ??????? "??????" ???????? "??????" ???????????? ?????????????? ???????????? ??л??????????????????????Ч????м?飬 ?????? "??????" ??????????????.??????????????? Hello?? world! :void testDefaultConstruction(){Foo foo = new Foo();assertNotNull(foo);}
????8. ?????????????????????????????????????? ?????????????????????????? ???????????е???????.
????9. Keep tests close to the class being tested[???: ??δ????ù??? ??????????????????????? ???? C++ ?? Python ?????????????????????ж????????? ????????????? src ??????? tests ???? ???????/??????????? ???? Test ??. ????????????????????????? ?????????? ??????????????????????????????.]If the class to test is Foo the test class should be called FooTest (not TestFoo) and kept in the same package (directory) as Foo. Keeping test classes in separate directory trees makes them harder to access and maintain.Make sure the build environment is configured so that the test classes doesn't make its way into production libraries or executables.
????10. ??????????????????????????????????? "??????" ????????????? ?????????????????????. ?????????????? test[what]?? ???? testSaveAs()?? testAddListener()?? testDeleteProperty() ??.
????11. ???????н????????????????? ????????? API ??????н??в???. ?Щ??????????????????????г???? ???????????????? ???ò????÷?????????????. ???????г?????????????????? ????????????????????????з?????. ??????????????????????? ?????????????.
????12. ??????????????????????????? ?????????????漲??????. ???跨?????????? (???: ??? tear it apart?? ???? "???????"?? ????????????? ?????? ???????????).
????13. ????????????????????????????д????? ?????????????????Щ????????.
????14. ??麯???????????????????????????????????????? ?Щ??鷽???? ????? setter ?? getter ?????????. ????????г???????????????麯??:??? ???????. ???????????в???????.???в???????? ??????????Щ???????????.????????????????? ???????????? ????? "???????" ???????:private double weight_;private double x_?? y_;public void setWeight(int weight){ weight = weight_; // error}public double getX(){ return x_;}public double getY(){ return x_; // error}????????????з???. ?????麯??????????.
????15. ??????и??????????? ??и????? ?? ???????????. ???????????????????????и?????. ?????????????? ?Щ ?????????????Ч???. ?????и????????? ???????????????????. ??? ?????????????????? (?????????????? 0%).??????1??з???:void setLength(double length);???? setLength(1.0) ???????? ????и?????. ??? ?????????????? ?ж???? double ????????????????????????Σ? ????????????????????. ??????????????????.