Beispiel #1
0
        public void GeneratorReturnsStringFor()
        {
            EmailGeneratorService testExample = new EmailGeneratorService();
            var result = testExample.Generate("yandex.ru");

            Assert.IsTrue(result is string);
        }
Beispiel #2
0
        public void ResultEndWithParameter()
        {
            string domain = "yandex.ru";
            EmailGeneratorService testExample = new EmailGeneratorService();
            var result = testExample.Generate(domain);

            StringAssert.EndsWith(domain, result);
        }
Beispiel #3
0
        public void GeneratorReturnsMathingResult()
        {
            string domain = "yandex.ru";
            EmailGeneratorService testExample = new EmailGeneratorService();
            var result = testExample.Generate(domain);

            StringAssert.IsMatch(@"^.{1,}\@.{1,}\..{1,}", result);
        }