public void FlexLayoutSetFlexGrow() { tlog.Debug(tag, $"FlexLayoutSetFlexGrow START"); View view = new View() { Size = new Size(400, 400), BackgroundColor = Color.White, Layout = new FlexLayout() { Direction = FlexLayout.FlexDirection.Column, } }; try { FlexLayout.SetFlexGrow(view, 0.2f); } catch (Exception e) { tlog.Error(tag, "Caught Exception" + e.ToString()); LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); Assert.Fail("Caught Exception" + e.ToString()); } view.Dispose(); tlog.Debug(tag, $"FlexLayoutSetFlexGrow END (OK)"); }
public void FlexLayoutGetFlexGrow() { tlog.Debug(tag, $"FlexLayoutGetFlexGrow START"); View view = new View() { Size = new Size(400, 400), BackgroundColor = Color.White, Layout = new FlexLayout() { Direction = FlexLayout.FlexDirection.Column, } }; FlexLayout.SetFlexGrow(view, 0.2f); var result = FlexLayout.GetFlexGrow(view); Assert.AreEqual(0.2f, result, "should be equal!"); view.Dispose(); tlog.Debug(tag, $"FlexLayoutGetFlexGrow END (OK)"); }