public void FlexLayoutAlignment() { tlog.Debug(tag, $"FlexLayoutAlignment START"); var testingTarget = new FlexLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <FlexLayout>(testingTarget, "Should return FlexLayout instance."); testingTarget.Alignment = FlexLayout.AlignmentType.FlexStart; Assert.AreEqual(testingTarget.Alignment, FlexLayout.AlignmentType.FlexStart, "Should be FlexStart."); testingTarget.Alignment = FlexLayout.AlignmentType.FlexEnd; Assert.AreEqual(testingTarget.Alignment, FlexLayout.AlignmentType.FlexEnd, "Should be FlexEnd."); testingTarget.Alignment = FlexLayout.AlignmentType.Auto; Assert.AreEqual(testingTarget.Alignment, FlexLayout.AlignmentType.Auto, "Should be Auto."); testingTarget.Alignment = FlexLayout.AlignmentType.Center; Assert.AreEqual(testingTarget.Alignment, FlexLayout.AlignmentType.Center, "Should be Center."); testingTarget.Alignment = FlexLayout.AlignmentType.Stretch; Assert.AreEqual(testingTarget.Alignment, FlexLayout.AlignmentType.Stretch, "Should be Stretch."); testingTarget.Dispose(); tlog.Debug(tag, $"FlexLayoutAlignment END (OK)"); }
public void FlexLayoutJustification() { tlog.Debug(tag, $"FlexLayoutJustification START"); var testingTarget = new FlexLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <FlexLayout>(testingTarget, "Should return FlexLayout instance."); testingTarget.Justification = FlexLayout.FlexJustification.FlexStart; Assert.AreEqual(testingTarget.Justification, FlexLayout.FlexJustification.FlexStart, "Should be FlexStart."); testingTarget.Justification = FlexLayout.FlexJustification.FlexEnd; Assert.AreEqual(testingTarget.Justification, FlexLayout.FlexJustification.FlexEnd, "Should be FlexEnd."); testingTarget.Justification = FlexLayout.FlexJustification.Center; Assert.AreEqual(testingTarget.Justification, FlexLayout.FlexJustification.Center, "Should be Center."); testingTarget.Justification = FlexLayout.FlexJustification.SpaceBetween; Assert.AreEqual(testingTarget.Justification, FlexLayout.FlexJustification.SpaceBetween, "Should be SpaceBetween."); testingTarget.Justification = FlexLayout.FlexJustification.SpaceAround; Assert.AreEqual(testingTarget.Justification, FlexLayout.FlexJustification.SpaceAround, "Should be SpaceAround."); testingTarget.Dispose(); tlog.Debug(tag, $"FlexLayoutJustification END (OK)"); }
public void FlexLayoutConstructor() { tlog.Debug(tag, $"FlexLayoutConstructor START"); var testingTarget = new FlexLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <FlexLayout>(testingTarget, "Should return FlexLayout instance."); testingTarget.Dispose(); tlog.Debug(tag, $"FlexLayoutConstructor END (OK)"); }
public void FlexLayoutWrapType() { tlog.Debug(tag, $"FlexLayoutWrapType START"); var testingTarget = new FlexLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <FlexLayout>(testingTarget, "Should return FlexLayout instance."); testingTarget.WrapType = FlexLayout.FlexWrapType.NoWrap; Assert.AreEqual(testingTarget.WrapType, FlexLayout.FlexWrapType.NoWrap, "Should be NoWrap."); testingTarget.WrapType = FlexLayout.FlexWrapType.Wrap; Assert.AreEqual(testingTarget.WrapType, FlexLayout.FlexWrapType.Wrap, "Should be Wrap."); testingTarget.Dispose(); tlog.Debug(tag, $"FlexLayoutWrapType END (OK)"); }
public void FlexLayoutDirection() { tlog.Debug(tag, $"FlexLayoutDirection START"); var testingTarget = new FlexLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <FlexLayout>(testingTarget, "Should return FlexLayout instance."); testingTarget.Direction = FlexLayout.FlexDirection.Column; Assert.AreEqual(testingTarget.Direction, FlexLayout.FlexDirection.Column, "Should be Column."); testingTarget.Direction = FlexLayout.FlexDirection.Row; Assert.AreEqual(testingTarget.Direction, FlexLayout.FlexDirection.Row, "Should be Row."); testingTarget.Direction = FlexLayout.FlexDirection.ColumnReverse; Assert.AreEqual(testingTarget.Direction, FlexLayout.FlexDirection.ColumnReverse, "Should be ColumnReverse."); testingTarget.Direction = FlexLayout.FlexDirection.RowReverse; Assert.AreEqual(testingTarget.Direction, FlexLayout.FlexDirection.RowReverse, "Should be RowReverse."); testingTarget.Dispose(); tlog.Debug(tag, $"FlexLayoutDirection END (OK)"); }