MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetEqualityMessage

Method GetEqualityMessage

Source/Engine/Debug/Assert.cs:360–371  ·  view source on GitHub ↗
(object actual, object expected, bool expectEqual)

Source from the content-addressed store, hash-verified

358 }
359
360 public static string GetEqualityMessage(object actual, object expected, bool expectEqual)
361 {
362 string str = string.Format("Values are {0}equal.", new object[] { !expectEqual ? string.Empty : "not " });
363 object[] objArray =
364 {
365 actual,
366 expected,
367 null
368 };
369 objArray[2] = !expectEqual ? "!=" : "==";
370 return GetMessage(str, string.Format("{0} {2} {1}", objArray));
371 }
372
373 public static string GetMessage(string failureMessage)
374 {

Callers

nothing calls this directly

Calls 2

GetMessageFunction · 0.85
FormatMethod · 0.80

Tested by

no test coverage detected