Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public void GeneratorReturnsString()
        {
            SnilsGeneratorService testExample = new SnilsGeneratorService();
            var result = testExample.Generate();

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

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