Exemplo n.º 1
0
		public void IsThisColumnChangeAllowable_Callable()
		{
			using (var view = new FakeDhListView(null))
			{
				ReflectionHelper.GetBoolResult(view, "IsThisColumnChangeAllowable", new object[] {0, 0, 0});
			}
		}
Exemplo n.º 2
0
 public void IsThisColumnChangeAllowable_Callable()
 {
     using (var view = new FakeDhListView(null))
     {
         ReflectionHelper.GetBoolResult(view, "IsThisColumnChangeAllowable", new object[] { 0, 0, 0 });
     }
 }
Exemplo n.º 3
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));
		}
Exemplo n.º 4
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));
        }