Exemple #1
0
        public void InstantSpecificTime()
        {
#pragma warning disable CS0618 // Type or member is obsolete
            string time = FakerData.GenerateInstantSpecificTime();
#pragma warning restore CS0618 // Type or member is obsolete
            Assert.IsTrue(Regex.IsMatch(time, @"\d{2}[/]\d{2}[/]\d{4}[ ]\d{2}[:]\d{2}[:]\d{2}"));
        }
Exemple #2
0
        public void InstantSpecificTime()
        {
            string time = FakerData.GenerateInstantSpecificTime();

            Assert.IsTrue(Regex.IsMatch(time, @"\d{2}[/]\d{2}[/]\d{4}[ ]\d{2}[:]\d{2}[:]\d{2}"));
        }