Example #1
0
        public void GeneratorReturnsMathcingResult()
        {
            SnilsGeneratorService testExample = new SnilsGeneratorService();
            string result = testExample.Generate();

            StringAssert.IsMatch(@"^\d{3}\-\d{3}\-\d{3}\s\d{2}", result);
        }
Example #2
0
        public void GeneratorReturnsString()
        {
            SnilsGeneratorService testExample = new SnilsGeneratorService();
            var result = testExample.Generate();

            Assert.IsTrue(result is string);
        }
Example #3
0
        public void GeneratorReturnsResultWithCorrectLength()
        {
            SnilsGeneratorService testExample = new SnilsGeneratorService();
            string result = testExample.Generate();

            Assert.IsTrue(result.Length == 14);
        }