コード例 #1
0
        public void ValidFormatWithPhoneProvider()
        {
            var           format   = "(0-xxx) xxx-xx-xxx";
            PhoneProvider provider = new PhoneProvider(format);

            provider.MoveNext(null);

            Assert.Equal(format.Length, provider.Current.Length);
        }
コード例 #2
0
        public void ValidFormatWithIDataProviderString()
        {
            var format = "(0-xxx) xxx-xx-xxx";
            IDataProvider <string> provider = new PhoneProvider(format);

            provider.MoveNext(null);

            Assert.Equal(format.Length, provider.Current.Length);
        }