也就是盡可能讓我們的重構能夠符合3A原則, 3A pattern: Arrange, Act, Assert 上面重構後Arrange就用Given…,然後Act就是SUT行為,Assert就是Assertion。
確定! 回上一頁