Beispiel #1
0
        public void TestGetCallStack()
        {
            var entry = new UnityLogEntry("helloworld", "hello\nworld", LogType.Log);

            Assert.AreEqual("hello", entry.GetStackTrace()[0]);
            Assert.AreEqual("world", entry.GetStackTrace()[1]);
        }
Beispiel #2
0
        public void TestNullStack()
        {
            var entry = new UnityLogEntry(null, null, LogType.Log);

            Assert.AreEqual(0, entry.GetStackTrace().Length);
        }