Ejemplo n.º 1
0
        public void StringScenarioShouldFail()
        {
            Verify.ShouldFail(() =>
                              ThisString.ShouldBe(ThisOtherString, "Some additional context"),

                              errorWithSource:
                              @"ThisString
    should be
""this other string""
    but was
""this string""
    difference
Difference     |                           |         |    |    |    |    |    |    |    |    |    |   
               |                          \|/       \|/  \|/  \|/  \|/  \|/  \|/  \|/  \|/  \|/  \|/  
Index          | 0    1    2    3    4    5    6    7    8    9    10   11   12   13   14   15   16   
Expected Value | t    h    i    s    \s   o    t    h    e    r    \s   s    t    r    i    n    g    
Actual Value   | t    h    i    s    \s   s    t    r    i    n    g                                  
Expected Code  | 116  104  105  115  32   111  116  104  101  114  32   115  116  114  105  110  103  
Actual Code    | 116  104  105  115  32   115  116  114  105  110  103                                

Additional Info:
    Some additional context",

                              errorWithoutSource:
                              @"""this string""
    should be
""this other string""
    but was not
    difference
Difference     |                           |         |    |    |    |    |    |    |    |    |    |   
               |                          \|/       \|/  \|/  \|/  \|/  \|/  \|/  \|/  \|/  \|/  \|/  
Index          | 0    1    2    3    4    5    6    7    8    9    10   11   12   13   14   15   16   
Expected Value | t    h    i    s    \s   o    t    h    e    r    \s   s    t    r    i    n    g    
Actual Value   | t    h    i    s    \s   s    t    r    i    n    g                                  
Expected Code  | 116  104  105  115  32   111  116  104  101  114  32   115  116  114  105  110  103  
Actual Code    | 116  104  105  115  32   115  116  114  105  110  103                                

Additional Info:
    Some additional context");
        }