UnityEngine.Assertions.AssertionMessageUtil.GetMessage C# (CSharp) Méthode

GetMessage() public static méthode

public static GetMessage ( string failureMessage ) : string
failureMessage string
Résultat string
        public static string GetMessage(string failureMessage)
        {
            object[] args = new object[] { "Assertion failed.", failureMessage };
            return UnityString.Format("{0} {1}", args);
        }

Same methods

AssertionMessageUtil::GetMessage ( string failureMessage, string expected ) : string

Usage Example

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 " : ""
     })));
 }
All Usage Examples Of UnityEngine.Assertions.AssertionMessageUtil::GetMessage