Testing assertions being logged (LogAssert.Expect behaviour)

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;
        }

Also see
https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/reference-custom-assertion.html

I have just been looking into this and this is what I found works:

        [UnityTest]
        public IEnumerator ExampleExceptionTest()
        {
            LogAssert.Expect(LogType.Exception, "Exception");
            Debug.LogException(new Exception(""));
            yield return null;
        }

The LogAssert.Expect needs to have the correct string, or it fails. This can be a matter of trial and error - I’ve ended up copy-pasting them from the Unity Console.

Also if the execption is e.g. of type ArgumentOutOfRangeException the exception message is over two lines. In this case the line break characters I have found to work are \r\n