public void DialogAccessibilityCalculateStates() { tlog.Debug(tag, $"DialogAccessibilityCalculateStates START"); var testingTarget = new MyDialog(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <Dialog>(testingTarget, "Should return Dialog instance."); try { testingTarget.MyAccessibilityCalculateStates(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } tlog.Debug(tag, $"DialogAccessibilityCalculateStates END (OK)"); }