本文整理汇总了C#中System.ComponentModel.MaskedTextProvider.VerifyChar方法的典型用法代码示例。如果您正苦于以下问题:C# MaskedTextProvider.VerifyChar方法的具体用法?C# MaskedTextProvider.VerifyChar怎么用?C# MaskedTextProvider.VerifyChar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.ComponentModel.MaskedTextProvider
的用法示例。
在下文中一共展示了MaskedTextProvider.VerifyChar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VerifyCharTest00001
public void VerifyCharTest00001 ()
{
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 (false, mtp.VerifyChar ('\x0', -1, out MaskedTextResultHint_out), "#0");
Assert.AreEqual (MaskedTextResultHint.PositionOutOfRange, MaskedTextResultHint_out, "#1");
MaskedTextProviderTest.AssertProperties (mtp, "VerifyCharTest", 2, true, false, 1, 0, CultureInfo.GetCultureInfo ("es-ES"), 1, true, false, false, 0, 3, @"abc", true, true, '\x0', '\x5F', true, true, true, @"abc", @"abc", @"abc", @"abc", @"a", @"abc", @"a");
}
示例2: VerifyCharTest00064
public void VerifyCharTest00064 ()
{
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 (true, mtp.VerifyChar ('\x20', 0, out MaskedTextResultHint_out), "#138");
Assert.AreEqual (MaskedTextResultHint.SideEffect, MaskedTextResultHint_out, "#139");
MaskedTextProviderTest.AssertProperties (mtp, "VerifyCharTest", 140, true, false, 1, 0, CultureInfo.GetCultureInfo ("es-ES"), 1, true, false, false, 0, 3, @"abc", true, true, '\x0', '\x5F', true, true, true, @"abc", @"abc", @"abc", @"abc", @"a", @"abc", @"a");
}
示例3: VerifyCharTest01186
public void VerifyCharTest01186 ()
{
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 (true, mtp.VerifyChar ('\x2F', 12, out MaskedTextResultHint_out), "#0");
Assert.AreEqual (MaskedTextResultHint.CharacterEscaped, MaskedTextResultHint_out, "#1");
MaskedTextProviderTest.AssertProperties (mtp, "VerifyCharTest", 2, true, false, 0, 9, CultureInfo.GetCultureInfo ("es-ES"), 9, true, false, false, -1, 15, @"09#L?&CAa.,:/$<>|\\", false, false, '\x0', '\x5F', true, true, true, @" ,.:/€\", @" ,.:/€\", @" ,.:/€\", @"_________,.:/€\", @"_________", @" ,.:/€\", @"");
}