public void GridLayoutConstructor() { tlog.Debug(tag, $"GridLayoutConstructor START"); var testingTarget = new GridLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <GridLayout>(testingTarget, "Should return GridLayout instance."); testingTarget.Dispose(); tlog.Debug(tag, $"GridLayoutConstructor END (OK)"); }
public void GridLayoutRows() { tlog.Debug(tag, $"GridLayoutRows START"); var testingTarget = new GridLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <LayoutGroup>(testingTarget, "Should return GridLayout instance."); testingTarget.Rows = 2; Assert.AreEqual(2, testingTarget.Rows, "Should be 2."); testingTarget.Rows = 1; Assert.AreEqual(1, testingTarget.Rows, "Should be 1."); testingTarget.Dispose(); tlog.Debug(tag, $"GridLayoutRows END (OK)"); }
public void GridLayoutGridOrientation() { tlog.Debug(tag, $"GridLayoutGridOrientation START"); var testingTarget = new GridLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <LayoutGroup>(testingTarget, "Should return GridLayout instance."); testingTarget.GridOrientation = GridLayout.Orientation.Horizontal; Assert.AreEqual(GridLayout.Orientation.Horizontal, testingTarget.GridOrientation, "Should be equal!"); testingTarget.GridOrientation = GridLayout.Orientation.Horizontal; Assert.AreEqual(GridLayout.Orientation.Horizontal, testingTarget.GridOrientation, "Should be equal!"); testingTarget.GridOrientation = GridLayout.Orientation.Vertical; Assert.AreEqual(GridLayout.Orientation.Vertical, testingTarget.GridOrientation, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"GridLayoutGridOrientation END (OK)"); }
public void GridLayoutRowSpacing() { tlog.Debug(tag, $"GridLayoutRowSpacing START"); var testingTarget = new GridLayout(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <LayoutGroup>(testingTarget, "Should return GridLayout instance."); testingTarget.RowSpacing = 10.0f; Assert.AreEqual(10.0f, testingTarget.RowSpacing, "Should be 10.0f."); testingTarget.RowSpacing = 20.0f; Assert.AreEqual(20.0f, testingTarget.RowSpacing, "Should be 20.0f."); testingTarget.RowSpacing = -10.0f; Assert.AreEqual(0.0f, testingTarget.RowSpacing, "Should be 0.0f."); testingTarget.Dispose(); tlog.Debug(tag, $"GridLayoutRowSpacing END (OK)"); }
public void Dispose() { if (dataSource != null) { dataSource.Dispose(); dataSource = null; } if (gridlayout != null) { gridlayout.Dispose(); gridlayout = null; } if (groupDropdown != null) { groupDropdown.Dispose(); groupDropdown = null; } if (groupTextView != null) { groupTextView.Dispose(); groupTextView = null; } if (listView != null) { listView.Dispose(); listView = null; } if (filterText != null) { filterText.Dispose(); filterText = null; } }
public void Dispose() { if (dataSource != null) { dataSource.Dispose(); dataSource = null; } if (conditionDropdown != null) { conditionDropdown.Dispose(); conditionDropdown = null; } if (columnDropdown != null) { columnDropdown.Dispose(); columnDropdown = null; } if (filterText != null) { filterText.Dispose(); filterText = null; } if (columnTextView != null) { columnTextView.Dispose(); columnTextView = null; } if (conditionTextView != null) { conditionTextView.Dispose(); conditionTextView = null; } if (condtionAdapter != null) { condtionAdapter.Dispose(); condtionAdapter = null; } if (gridlayout != null) { gridlayout.Dispose(); gridlayout = null; } if (columnDropdown != null) { columnDropdown.Dispose(); columnDropdown = null; } if (groupTextView != null) { groupTextView.Dispose(); groupTextView = null; } if (listView != null) { listView.Dispose(); listView = null; } if (filterText != null) { filterText.Dispose(); filterText = null; } }