コード例 #1
0
 public void LayoutIgnoredDuringColumnResizing()
 {
     using (var chart = new FakeConstituentChart(Cache))
     {
         // Reset count
         chart.m_SetHeaderColAndButtonWidths_callCount = 0;
         ReflectionHelper.CallMethod(chart, "m_headerMainCols_ColumnWidthChanging", new object[] { null, null });
         ReflectionHelper.CallMethod(chart, "m_headerMainCols_Layout", new object[] { null, null });
         Assert.That(chart.m_SetHeaderColAndButtonWidths_callCount, Is.EqualTo(0), "Layout event during column resizing should have done nothing.");
     }
 }
コード例 #2
0
		public void LayoutIgnoredDuringColumnResizing()
		{
			using (var chart = new FakeConstituentChart(Cache))
			{
				// Reset count
				chart.m_SetHeaderColAndButtonWidths_callCount = 0;
				ReflectionHelper.CallMethod(chart, "m_headerMainCols_ColumnWidthChanging", new object[] { null, null });
				ReflectionHelper.CallMethod(chart, "m_headerMainCols_Layout", new object[] { null, null });
				Assert.That(chart.m_SetHeaderColAndButtonWidths_callCount, Is.EqualTo(0), "Layout event during column resizing should have done nothing.");
			}
		}