anchor.diff:  
   a(href="#toc") Back to top
   
  +a(href="#toc") 回到顶部
  +
   .l-main-section
   :marked
     ### Unit Test File Names
  +  ### 单元测试文明命名
     <a id="02-10"></a>
     #### Style 02-10
  +  #### 风格02-10
   
   .s-rule.do
     :marked
       **Do** name test specification files the same as the component they test.
  +    
  +    **做** 测试配置文件的取名应该和被测试的组件名字一样。
   
   .s-rule.do
     :marked
       **Do** name test specification files with a suffix of `.spec`.
  +    
  +    **做** 测试配置文件命名应该跟随后缀`.spec`。
   
   .s-why
     :marked
         **Why?** Provides a consistent way to quickly identify tests.
  +      
  +      **为什么？** 提供一个统一的方法来快速识别测试。
   
   .s-why.s-why-last
     :marked
         **Why?** Provides pattern matching for [karma](http://karma-runner.github.io/) or other test runners.
  +      
  +      **为什么？** 提供一个与[karma](http://karma-runner.github.io/)或者其他测试运行器相配的命名模式。
   
   :marked
   - var top="vertical-align:top"
  
positive.code: 
  a(href="#toc") Back to top
  
  .l-main-section
  :marked
    ### Service Names
    <a id="02-04"></a>
    #### Style 02-04
  
  .s-rule.do
    :marked
      **Do** use consistent names for all services named after their feature.
  
  .s-rule.do
    :marked
      **Do** use upper camel case for services.
  
  .s-rule.do
    :marked
      **Do** suffix services with `Service` when it is not clear what they are (e.g. when they are nouns).
  
  .s-why
    :marked
      **Why?** Provides a consistent way to quickly identify and reference services.
  
  .s-why
    :marked
      **Why?** Clear service names such as `logger` do not require a suffix.
  
  .s-why.s-why-last
    :marked
      **Why?** Service names such as `Credit` are nouns and require a suffix and should be named with a suffix when it is not obvious if it is a service or something else.
  
  - var top="vertical-align:top"
  table(width="100%")
  
negative.code: .l-main-section
  :marked
    ### End to End Test File Names
    ### 端对端测试文件名字
    <a id="02-11"></a>
    #### Style 02-11
    #### 风格02-11
  
  .s-rule.do
    :marked
      **Do** name end-to-end test specification files after the feature they test with a suffix of `.e2e-spec`.
      
      **做** 端对端测试配置文件应该和它们所测试的特征同名，并加上后缀`.e2e-spec`。
  
  .s-why
    :marked
      **Why?** Provides a consistent way to quickly identify end-to-end tests.
      
      *为什么？** 提供一个统一的方法快速识别端对端测试文件。
  
  .s-why.s-why-last
    :marked
      **Why?** Provides pattern matching for test runners and build automation.
      
      **为什么？** 提供一个模式，与测试运行器和自动建造相配。
  
  :marked
  :marked
  