コード例 #1
0
 public MaskInputRejectedEventArgs(int position, MaskedTextResultHint rejectionHint)
 {
     Debug.Assert(!MaskedTextProvider.GetOperationResultFromHint(rejectionHint), "Rejection hint is not on a failure.");
     this.position = position;
     this.hint     = rejectionHint;
 }
コード例 #2
0
 public void GetOperationResultFromHint()
 {
     Assert.True(MaskedTextProvider.GetOperationResultFromHint(MaskedTextResultHint.Success));
     Assert.False(MaskedTextProvider.GetOperationResultFromHint(MaskedTextResultHint.PositionOutOfRange));
 }