Ejemplo n.º 1
0
        public void FindAssignedEditPositionFrom()
        {
            var maskedTextProvider = new MaskedTextProvider(TestSimpleDigitMask);

            Assert.Equal(-1, maskedTextProvider.FindAssignedEditPositionFrom(0, true));

            maskedTextProvider.Add("12");
            Assert.Equal(0, maskedTextProvider.FindAssignedEditPositionFrom(0, true));
            Assert.Equal(2, maskedTextProvider.FindAssignedEditPositionFrom(5, false));
        }