public void IsThisColumnChangeAllowable_Callable() { using (var view = new FakeDhListView(null)) { ReflectionHelper.GetBoolResult(view, "IsThisColumnChangeAllowable", new object[] {0, 0, 0}); } }
public void IsThisColumnChangeAllowable_Callable() { using (var view = new FakeDhListView(null)) { ReflectionHelper.GetBoolResult(view, "IsThisColumnChangeAllowable", new object[] { 0, 0, 0 }); } }
/// <summary> /// Helper for unit tests /// </summary> static void IsThisColumnChangeAllowable_Helper(int columnIndex, int currentWidth, int requestedWidth, bool hasCheckMarkColumn, bool expected) { bool actual; using (var view = new FakeDhListView(null)) { view.m_hasCheckBoxColumn = hasCheckMarkColumn; actual = ReflectionHelper.GetBoolResult(view, "IsThisColumnChangeAllowable", new object[] { columnIndex, currentWidth, requestedWidth }); } Assert.That(actual, Is.EqualTo(expected)); }