当前位置: 首页>>代码示例>>C#>>正文


C# MaskedTextProvider.FindAssignedEditPositionInRange方法代码示例

本文整理汇总了C#中System.ComponentModel.MaskedTextProvider.FindAssignedEditPositionInRange方法的典型用法代码示例。如果您正苦于以下问题:C# MaskedTextProvider.FindAssignedEditPositionInRange方法的具体用法?C# MaskedTextProvider.FindAssignedEditPositionInRange怎么用?C# MaskedTextProvider.FindAssignedEditPositionInRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.ComponentModel.MaskedTextProvider的用法示例。


在下文中一共展示了MaskedTextProvider.FindAssignedEditPositionInRange方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FindAssignedEditPositionInRangeTest12

		public void FindAssignedEditPositionInRangeTest12 ()
		{
			MaskedTextProvider mtp;
			//int Int32_out = 0;
			//MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;
			mtp = new MaskedTextProvider (@"000-00-0000");
			mtp.Add (@"1");
			mtp.Add (@"2");
			mtp.InsertAt ('\x33', 7);
			mtp.InsertAt ('\x34', 4);
			MaskedTextProviderTest.AssertProperties (mtp, "FindAssignedEditPositionInRangeTest", 4115, true, false, 4, 5, CultureInfo.GetCultureInfo ("es-ES"), 9, true, false, false, 7, 11, @"000-00-0000", false, false, '\x0', '\x5F', true, true, true, @"12 -4 -3", @"12 -4 -3", @"12 -4 -3", @"12_-4_-3___", @"12_4_3___", @"12 -4 -3", @"12 4 3");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 0, false), "#3777");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 0, true), "#3778");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 1, false), "#3779");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 1, true), "#3780");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 2, false), "#3781");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 2, true), "#3782");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 3, false), "#3783");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 3, true), "#3784");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (0, 4, false), "#3785");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 4, true), "#3786");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (0, 5, false), "#3787");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 5, true), "#3788");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (0, 6, false), "#3789");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 6, true), "#3790");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (0, 7, false), "#3791");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 7, true), "#3792");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (0, 8, false), "#3793");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 8, true), "#3794");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (0, 9, false), "#3795");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 9, true), "#3796");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (0, 10, false), "#3797");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 10, true), "#3798");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (0, 11, false), "#3799");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 11, true), "#3800");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (0, 12, false), "#3801");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 12, true), "#3802");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, false), "#3803");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, true), "#3804");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 1, false), "#3805");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 1, true), "#3806");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 2, false), "#3807");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 2, true), "#3808");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 3, false), "#3809");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 3, true), "#3810");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (1, 4, false), "#3811");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 4, true), "#3812");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (1, 5, false), "#3813");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 5, true), "#3814");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (1, 6, false), "#3815");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 6, true), "#3816");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (1, 7, false), "#3817");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 7, true), "#3818");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (1, 8, false), "#3819");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 8, true), "#3820");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (1, 9, false), "#3821");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 9, true), "#3822");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (1, 10, false), "#3823");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 10, true), "#3824");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (1, 11, false), "#3825");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 11, true), "#3826");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (1, 12, false), "#3827");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 12, true), "#3828");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, false), "#3829");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, true), "#3830");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, false), "#3831");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, true), "#3832");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, false), "#3833");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, true), "#3834");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, false), "#3835");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, true), "#3836");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 4, false), "#3837");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 4, true), "#3838");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 5, false), "#3839");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 5, true), "#3840");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 6, false), "#3841");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 6, true), "#3842");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (2, 7, false), "#3843");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 7, true), "#3844");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (2, 8, false), "#3845");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 8, true), "#3846");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (2, 9, false), "#3847");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 9, true), "#3848");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (2, 10, false), "#3849");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 10, true), "#3850");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (2, 11, false), "#3851");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 11, true), "#3852");
			Assert.AreEqual (7, mtp.FindAssignedEditPositionInRange (2, 12, false), "#3853");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (2, 12, true), "#3854");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, false), "#3855");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, true), "#3856");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, false), "#3857");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, true), "#3858");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, false), "#3859");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, true), "#3860");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, false), "#3861");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, true), "#3862");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (3, 4, false), "#3863");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (3, 4, true), "#3864");
			Assert.AreEqual (4, mtp.FindAssignedEditPositionInRange (3, 5, false), "#3865");
//.........这里部分代码省略.........
开发者ID:peterdocter,项目名称:mono,代码行数:101,代码来源:MaskedTextProviderTest.cs

示例2: FindAssignedEditPositionInRangeTest10

		public void FindAssignedEditPositionInRangeTest10 ()
		{
			MaskedTextProvider mtp;
			int Int32_out = 0;
			MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;
			mtp = new MaskedTextProvider (@"000-00-0000");
			mtp.Add (@"a");
			mtp.Add ('\x61');
			mtp.Add ('\x61', out Int32_out, out MaskedTextResultHint_out);
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 0, false), "#3099");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 0, true), "#3100");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 1, false), "#3101");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 1, true), "#3102");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 2, false), "#3103");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 2, true), "#3104");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 3, false), "#3105");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 3, true), "#3106");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 4, false), "#3107");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 4, true), "#3108");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 5, false), "#3109");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 5, true), "#3110");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 6, false), "#3111");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 6, true), "#3112");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 7, false), "#3113");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 7, true), "#3114");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 8, false), "#3115");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 8, true), "#3116");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 9, false), "#3117");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 9, true), "#3118");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 10, false), "#3119");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 10, true), "#3120");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 11, false), "#3121");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 11, true), "#3122");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 12, false), "#3123");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 12, true), "#3124");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, false), "#3125");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, true), "#3126");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 1, false), "#3127");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 1, true), "#3128");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 2, false), "#3129");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 2, true), "#3130");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 3, false), "#3131");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 3, true), "#3132");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 4, false), "#3133");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 4, true), "#3134");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 5, false), "#3135");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 5, true), "#3136");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 6, false), "#3137");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 6, true), "#3138");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 7, false), "#3139");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 7, true), "#3140");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 8, false), "#3141");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 8, true), "#3142");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 9, false), "#3143");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 9, true), "#3144");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 10, false), "#3145");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 10, true), "#3146");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 11, false), "#3147");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 11, true), "#3148");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 12, false), "#3149");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 12, true), "#3150");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, false), "#3151");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, true), "#3152");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, false), "#3153");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, true), "#3154");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, false), "#3155");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, true), "#3156");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, false), "#3157");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, true), "#3158");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 4, false), "#3159");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 4, true), "#3160");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 5, false), "#3161");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 5, true), "#3162");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 6, false), "#3163");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 6, true), "#3164");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 7, false), "#3165");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 7, true), "#3166");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 8, false), "#3167");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 8, true), "#3168");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 9, false), "#3169");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 9, true), "#3170");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 10, false), "#3171");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 10, true), "#3172");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 11, false), "#3173");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 11, true), "#3174");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 12, false), "#3175");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 12, true), "#3176");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, false), "#3177");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, true), "#3178");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, false), "#3179");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, true), "#3180");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, false), "#3181");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, true), "#3182");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, false), "#3183");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, true), "#3184");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 4, false), "#3185");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 4, true), "#3186");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 5, false), "#3187");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 5, true), "#3188");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 6, false), "#3189");
//.........这里部分代码省略.........
开发者ID:peterdocter,项目名称:mono,代码行数:101,代码来源:MaskedTextProviderTest.cs

示例3: FindAssignedEditPositionInRangeTest7

		public void FindAssignedEditPositionInRangeTest7 ()
		{
			MaskedTextProvider mtp;
			int Int32_out = 0;
			MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;
			mtp = new MaskedTextProvider (@"09#L?&CAa.,:/$<>|\\");
			mtp.Add ("a");
			mtp.Add ('\x61');
			mtp.Add ('\x61', out Int32_out, out MaskedTextResultHint_out);
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 0, false), "#450");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 0, true), "#451");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 1, false), "#452");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 1, true), "#453");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 2, false), "#454");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 2, true), "#455");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 3, false), "#456");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 3, true), "#457");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 4, false), "#458");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 4, true), "#459");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 5, false), "#460");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 5, true), "#461");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 6, false), "#462");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 6, true), "#463");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 7, false), "#464");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 7, true), "#465");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 8, false), "#466");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 8, true), "#467");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 9, false), "#468");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 9, true), "#469");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 10, false), "#470");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 10, true), "#471");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 11, false), "#472");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 11, true), "#473");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 12, false), "#474");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 12, true), "#475");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 13, false), "#476");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 13, true), "#477");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 14, false), "#478");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 14, true), "#479");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 15, false), "#480");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 15, true), "#481");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 16, false), "#482");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 16, true), "#483");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 17, false), "#484");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 17, true), "#485");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 18, false), "#486");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 18, true), "#487");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 19, false), "#488");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 19, true), "#489");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 20, false), "#490");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 20, true), "#491");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, false), "#492");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, true), "#493");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 1, false), "#494");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 1, true), "#495");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 2, false), "#496");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 2, true), "#497");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 3, false), "#498");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 3, true), "#499");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 4, false), "#500");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 4, true), "#501");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 5, false), "#502");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 5, true), "#503");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 6, false), "#504");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 6, true), "#505");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 7, false), "#506");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 7, true), "#507");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 8, false), "#508");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 8, true), "#509");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 9, false), "#510");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 9, true), "#511");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 10, false), "#512");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 10, true), "#513");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 11, false), "#514");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 11, true), "#515");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 12, false), "#516");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 12, true), "#517");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 13, false), "#518");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 13, true), "#519");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 14, false), "#520");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 14, true), "#521");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 15, false), "#522");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 15, true), "#523");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 16, false), "#524");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 16, true), "#525");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 17, false), "#526");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 17, true), "#527");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 18, false), "#528");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 18, true), "#529");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 19, false), "#530");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 19, true), "#531");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 20, false), "#532");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 20, true), "#533");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, false), "#534");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, true), "#535");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, false), "#536");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, true), "#537");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, false), "#538");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, true), "#539");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, false), "#540");
//.........这里部分代码省略.........
开发者ID:peterdocter,项目名称:mono,代码行数:101,代码来源:MaskedTextProviderTest.cs

示例4: FindAssignedEditPositionInRangeTest4

		public void FindAssignedEditPositionInRangeTest4 ()
		{
			MaskedTextProvider mtp;
			//int Int32_out = 0;
			//MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;
			mtp = new MaskedTextProvider (@"a?b?c");
			mtp.Add ("a");
			mtp.Remove ();
			mtp.InsertAt ('\x61', 1);
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 0, false), "#201");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 0, true), "#202");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 1, false), "#203");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 1, true), "#204");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 2, false), "#205");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 2, true), "#206");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 3, false), "#207");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 3, true), "#208");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 4, false), "#209");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 4, true), "#210");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 5, false), "#211");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 5, true), "#212");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 6, false), "#213");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (0, 6, true), "#214");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, false), "#215");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, true), "#216");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 1, false), "#217");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 1, true), "#218");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 2, false), "#219");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 2, true), "#220");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 3, false), "#221");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 3, true), "#222");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 4, false), "#223");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 4, true), "#224");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 5, false), "#225");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 5, true), "#226");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 6, false), "#227");
			Assert.AreEqual (1, mtp.FindAssignedEditPositionInRange (1, 6, true), "#228");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, false), "#229");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, true), "#230");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, false), "#231");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, true), "#232");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, false), "#233");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, true), "#234");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, false), "#235");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, true), "#236");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 4, false), "#237");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 4, true), "#238");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 5, false), "#239");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 5, true), "#240");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 6, false), "#241");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 6, true), "#242");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, false), "#243");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, true), "#244");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, false), "#245");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, true), "#246");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, false), "#247");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, true), "#248");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, false), "#249");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, true), "#250");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 4, false), "#251");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 4, true), "#252");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 5, false), "#253");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 5, true), "#254");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 6, false), "#255");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 6, true), "#256");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 0, false), "#257");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 0, true), "#258");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 1, false), "#259");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 1, true), "#260");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 2, false), "#261");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 2, true), "#262");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 3, false), "#263");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 3, true), "#264");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 4, false), "#265");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 4, true), "#266");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 5, false), "#267");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 5, true), "#268");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 6, false), "#269");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 6, true), "#270");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 0, false), "#271");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 0, true), "#272");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 1, false), "#273");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 1, true), "#274");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 2, false), "#275");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 2, true), "#276");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 3, false), "#277");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 3, true), "#278");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 4, false), "#279");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 4, true), "#280");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 5, false), "#281");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 5, true), "#282");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 6, false), "#283");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (5, 6, true), "#284");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (6, 0, false), "#285");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (6, 0, true), "#286");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (6, 1, false), "#287");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (6, 1, true), "#288");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (6, 2, false), "#289");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (6, 2, true), "#290");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (6, 3, false), "#291");
//.........这里部分代码省略.........
开发者ID:peterdocter,项目名称:mono,代码行数:101,代码来源:MaskedTextProviderTest.cs

示例5: FindAssignedEditPositionInRangeTest2

		public void FindAssignedEditPositionInRangeTest2 ()
		{
			MaskedTextProvider mtp;
			//int Int32_out = 0;
			//MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;
			mtp = new MaskedTextProvider (@"abc");
			mtp.Add ("a");
			mtp.Remove ();
			mtp.InsertAt ('\x61', 1);
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 0, false), "#51");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 0, true), "#52");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 1, false), "#53");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 1, true), "#54");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 2, false), "#55");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 2, true), "#56");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 3, false), "#57");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 3, true), "#58");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 4, false), "#59");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (0, 4, true), "#60");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, false), "#61");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, true), "#62");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 1, false), "#63");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 1, true), "#64");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 2, false), "#65");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 2, true), "#66");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 3, false), "#67");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 3, true), "#68");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 4, false), "#69");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 4, true), "#70");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, false), "#71");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, true), "#72");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, false), "#73");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, true), "#74");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, false), "#75");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, true), "#76");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, false), "#77");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, true), "#78");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 4, false), "#79");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 4, true), "#80");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, false), "#81");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, true), "#82");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, false), "#83");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, true), "#84");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, false), "#85");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, true), "#86");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, false), "#87");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, true), "#88");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 4, false), "#89");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 4, true), "#90");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 0, false), "#91");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 0, true), "#92");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 1, false), "#93");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 1, true), "#94");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 2, false), "#95");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 2, true), "#96");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 3, false), "#97");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 3, true), "#98");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 4, false), "#99");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 4, true), "#100");
			AssertProperties (mtp, "FindAssignedEditPositionInRangeTest", 101, true, false, 0, 1, CultureInfo.GetCultureInfo ("en-US"), 1, true, false, false, -1, 3, "abc", true, false, '\x0', '\x5F', true, true, true, @" bc", @" bc", @" bc", @"_bc", @"_", @" bc", @"");
		}
开发者ID:peterdocter,项目名称:mono,代码行数:61,代码来源:MaskedTextProviderTest.cs

示例6: FindAssignedEditPositionInRangeTest1

		public void FindAssignedEditPositionInRangeTest1 ()
		{
			MaskedTextProvider mtp;
			int Int32_out = 0;
			MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;
			mtp = new MaskedTextProvider (@"abc");
			mtp.Add ("a");
			mtp.Add ('\x61');
			mtp.Add ('\x61', out Int32_out, out MaskedTextResultHint_out);
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 0, false), "#0");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 0, true), "#1");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 1, false), "#2");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 1, true), "#3");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 2, false), "#4");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 2, true), "#5");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 3, false), "#6");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 3, true), "#7");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 4, false), "#8");
			Assert.AreEqual (0, mtp.FindAssignedEditPositionInRange (0, 4, true), "#9");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, false), "#10");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 0, true), "#11");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 1, false), "#12");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 1, true), "#13");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 2, false), "#14");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 2, true), "#15");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 3, false), "#16");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 3, true), "#17");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 4, false), "#18");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (1, 4, true), "#19");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, false), "#20");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 0, true), "#21");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, false), "#22");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 1, true), "#23");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, false), "#24");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 2, true), "#25");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, false), "#26");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 3, true), "#27");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 4, false), "#28");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (2, 4, true), "#29");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, false), "#30");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 0, true), "#31");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, false), "#32");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 1, true), "#33");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, false), "#34");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 2, true), "#35");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, false), "#36");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 3, true), "#37");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 4, false), "#38");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (3, 4, true), "#39");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 0, false), "#40");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 0, true), "#41");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 1, false), "#42");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 1, true), "#43");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 2, false), "#44");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 2, true), "#45");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 3, false), "#46");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 3, true), "#47");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 4, false), "#48");
			Assert.AreEqual (-1, mtp.FindAssignedEditPositionInRange (4, 4, true), "#49");
			AssertProperties (mtp, "FindAssignedEditPositionInRangeTest", 50, true, false, 1, 0, CultureInfo.GetCultureInfo ("en-US"), 1, true, false, false, 0, 3, "abc", true, true, '\x0', '\x5F', true, true, true, @"abc", @"abc", @"abc", @"abc", @"a", @"abc", @"a");
		}
开发者ID:peterdocter,项目名称:mono,代码行数:61,代码来源:MaskedTextProviderTest.cs


注:本文中的System.ComponentModel.MaskedTextProvider.FindAssignedEditPositionInRange方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。