コード例 #1
0
ファイル: DhListViewTests.cs プロジェクト: bbriggs/FieldWorks
		public void IsThisColumnChangeAllowable_Callable()
		{
			using (var view = new FakeDhListView(null))
			{
				ReflectionHelper.GetBoolResult(view, "IsThisColumnChangeAllowable", new object[] {0, 0, 0});
			}
		}
コード例 #2
0
 public void IsThisColumnChangeAllowable_Callable()
 {
     using (var view = new FakeDhListView(null))
     {
         ReflectionHelper.GetBoolResult(view, "IsThisColumnChangeAllowable", new object[] { 0, 0, 0 });
     }
 }
コード例 #3
0
ファイル: DhListViewTests.cs プロジェクト: bbriggs/FieldWorks
		/// <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));
		}
コード例 #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));
        }