I am trying to log assertions but cannot figure out what I am doing wrong.
[UnityTest] //works
public IEnumerator LogMessage()
{
LogAssert.Expect(LogType.Log, "message");
Debug.Log("message");
yield return null;
}
[UnityTest] //works
public IEnumerator LogError()
{
LogAssert.Expect(LogType.Error, "error");
Debug.LogError("error");
yield return null;
}
[UnityTest] //not working
public IEnumerator LogException()
{
LogAssert.Expect(LogType.Exception, "");
Debug.LogException(new Exception(""));
yield return null;
}