public void TestGetCallStack() { var entry = new UnityLogEntry("helloworld", "hello\nworld", LogType.Log); Assert.AreEqual("hello", entry.GetStackTrace()[0]); Assert.AreEqual("world", entry.GetStackTrace()[1]); }
public void TestNullStack() { var entry = new UnityLogEntry(null, null, LogType.Log); Assert.AreEqual(0, entry.GetStackTrace().Length); }