????????Test Fixture????????????????????Test Fixture???????????????????????????????????????????????У?????Test Fixture??????????о???????????????????????????????????????????????ε?????????

The test fixture is everything we need to have in place to exercise the SUT

??????????????Test Fixture??????????????????壬?????б???????????????ж?????????????????????????????????????????????????????????????????????????????????????ConnectionString?????????????????????????Test Fixture??

1. ?????????????????????????????б?д???Test Fixture????????????????????????????????????????????????????????????????SETUP????????????????????????????????????????????????????????????????????????????Hard code????????????????????????????????????????????????????????????????????????????;??Σ????Щ???????????Test Fixture??????У???????????????д????????????????

2. ??з????????????Test Fixture????????????????????????????????????е??á???????????????ò???????????????????????SETUP??????????á????????????????????ζ?SETUP????????????ò???????????????????????????????棬?????????SETUP??

3. ???????????xUnit???????????????????SETUP??TEARDOWN??????MSTEST?????[TestInitialize]?? [TestCleanup]??????????????????Test Fixture?????????????????????????????????????α???[TestInitialize]??????????????????????????д???????????????ж??????Test Fixture?????????????ζ?????????????????????????????????

??????????????????????Щ??????ò?????????п??????????

?????????????????????????????test class ?????filed????property??????????????????