public void DatePickerApplyStyle() { tlog.Debug(tag, $"DatePickerApplyStyle START"); var testingTarget = new DatePicker() { Size = new Size(600, 339), Date = DateTime.Now, }; Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <DatePicker>(testingTarget, "Should return DatePicker instance."); try { ViewStyle style = new ViewStyle() { Size = new Size(30, 200) }; testingTarget.ApplyStyle(style); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"DatePickerApplyStyle END (OK)"); }