public void AlertDialogAccessibilityGetName() { tlog.Debug(tag, $"AlertDialogAccessibilityGetName START"); var testingTarget = new MyAlertDialog(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <AlertDialog>(testingTarget, "Should return AlertDialog instance."); testingTarget.Title = "AlertTest"; var result = testingTarget.OnAccessibilityGetName(); tlog.Debug(tag, "AccessibilityGetName : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"AlertDialogAccessibilityGetName END (OK)"); }
public void AlertDialogAccessibilityGetDescription() { tlog.Debug(tag, $"AlertDialogAccessibilityGetDescription START"); var testingTarget = new MyAlertDialog(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <AlertDialog>(testingTarget, "Should return AlertDialog instance."); testingTarget.Content = new TextLabel() { //Text = "AlertContent" }; testingTarget.Message = "AlertContent"; var result = testingTarget.OnAccessibilityGetDescription(); tlog.Debug(tag, "AccessibilityGetDescription : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"AlertDialogAccessibilityGetDescription END (OK)"); }
public void AlertDialogAccessibilityCalculateStates() { tlog.Debug(tag, $"AlertDialogAccessibilityCalculateStates START"); var testingTarget = new MyAlertDialog() { Size = new Size(100, 100), TitleContent = new View() { Size = new Size(100, 20) }, Content = new View() { Size = new Size(100, 80) }, ActionContent = new View() { Size = new Size(50, 50) }, }; Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <AlertDialog>(testingTarget, "Should return AlertDialog instance."); try { var result = testingTarget.OnAccessibilityCalculateStates(); tlog.Debug(tag, "AccessibilityCalculateStates : " + result); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"AlertDialogAccessibilityCalculateStates END (OK)"); }
public void AlertDialogDispose() { tlog.Debug(tag, $"AlertDialogDispose START"); var testingTarget = new MyAlertDialog() { Size = new Size(100, 100), TitleContent = new View() { Size = new Size(100, 20) }, Content = new View() { Size = new Size(100, 80) }, ActionContent = new View() { Size = new Size(50, 50) }, }; Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <AlertDialog>(testingTarget, "Should return AlertDialog instance."); try { testingTarget.OnDispose(DisposeTypes.Explicit); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"AlertDialogDispose END (OK)"); }