GetMessage() public static méthode

public static GetMessage ( string failureMessage ) : string
failureMessage string
Résultat string
Exemple #1
0
 public static string NullFailureMessage(object value, bool expectNull)
 {
     return(AssertionMessageUtil.GetMessage(UnityString.Format("Value was {0}Null", new object[]
     {
         (!expectNull) ? "" : "not "
     }), UnityString.Format("Value was {0}Null", new object[]
     {
         (!expectNull) ? "not " : ""
     })));
 }
Exemple #2
0
 public static string GetMessage(string failureMessage, string expected)
 {
     return(AssertionMessageUtil.GetMessage(UnityString.Format("{0}{1}{2} {3}", new object[]
     {
         failureMessage,
         Environment.NewLine,
         "Expected:",
         expected
     })));
 }
Exemple #3
0
 public static string GetEqualityMessage(object actual, object expected, bool expectEqual)
 {
     return(AssertionMessageUtil.GetMessage(UnityString.Format("Values are {0}equal.", new object[]
     {
         (!expectEqual) ? "" : "not "
     }), UnityString.Format("{0} {2} {1}", new object[]
     {
         actual,
         expected,
         (!expectEqual) ? "!=" : "=="
     })));
 }
 public static string BooleanFailureMessage(bool expected)
 {
     return(AssertionMessageUtil.GetMessage("Value was " + (object)!expected, expected.ToString()));
 }
 public static string NullFailureMessage(object value, bool expectNull)
 {
     return(AssertionMessageUtil.GetMessage(UnityString.Format("Value was {0}Null", (object)(!expectNull ? string.Empty : "not ")), UnityString.Format("Value was {0}Null", (object)(!expectNull ? "not " : string.Empty))));
 }
 public static string GetEqualityMessage(object actual, object expected, bool expectEqual)
 {
     return(AssertionMessageUtil.GetMessage(UnityString.Format("Values are {0}equal.", (object)(!expectEqual ? string.Empty : "not ")), UnityString.Format("{0} {2} {1}", actual, expected, (object)(!expectEqual ? "!=" : "=="))));
 }