public void DefaultGridItemStyleConstructor() { tlog.Debug(tag, $"DefaultGridItemStyleConstructor START"); DefaultGridItemStyle style = new DefaultGridItemStyle() { Label = new TextLabelStyle() { EnableAutoScroll = true, Ellipsis = true, }, Image = new ImageViewStyle() { BorderOnly = true, ResourceUrl = new StringSelector { Normal = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png", Selected = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "arrow.png", Disabled = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "button_9patch.png", DisabledSelected = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png", }, } }; var testingTarget = new DefaultGridItemStyle(style); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <DefaultGridItemStyle>(testingTarget, "Should return DefaultGridItemStyle instance."); testingTarget.Dispose(); tlog.Debug(tag, $"DefaultGridItemStyleConstructor END (OK)"); }
public void DefaultGridItemConstructorWithItemStyle() { tlog.Debug(tag, $"DefaultGridItem START"); var itemStyle = new DefaultGridItemStyle() { Padding = new Extents(0, 0, 0, 0), Margin = new Extents(5, 5, 5, 5), Label = new TextLabelStyle() { SizeHeight = 60, PixelSize = 24, LineWrapMode = LineWrapMode.Character, ThemeChangeSensitive = false }, Badge = new ViewStyle() { Margin = new Extents(5, 5, 5, 5), }, }; var testingTarget = new DefaultGridItem(itemStyle); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <DefaultGridItem>(testingTarget, "should be an instance of testing target class!"); testingTarget.Dispose(); tlog.Debug(tag, $"DefaultGridItem END (OK)"); }