Ejemplo n.º 1
0
        public void GeneratorReturnsString()
        {
            SexGeneratorService testExample = new SexGeneratorService();
            var result = testExample.Generate("ru");

            Assert.IsTrue(result is string);
        }
Ejemplo n.º 2
0
        public void GeneratorReturnsCorrectResultForCh()
        {
            SexGeneratorService testExample = new SexGeneratorService();
            string result = testExample.Generate("ch");

            Assert.IsTrue(result == "男性" || result == "女性");
        }
Ejemplo n.º 3
0
        public void GeneratorReturnsCorrectResultForDe()
        {
            SexGeneratorService testExample = new SexGeneratorService();
            string result = testExample.Generate("de");

            Assert.IsTrue(result == "männlich" || result == "weiblich");
        }
Ejemplo n.º 4
0
        public void GeneratorReturnsCorrectResultForFr()
        {
            SexGeneratorService testExample = new SexGeneratorService();
            string result = testExample.Generate("fr");

            Assert.IsTrue(result == "mâle" || result == "femelle");
        }
Ejemplo n.º 5
0
        public void GeneratorReturnsCorrectResultForRu()
        {
            SexGeneratorService testExample = new SexGeneratorService();
            string result = testExample.Generate("ru");

            Assert.IsTrue(result == "мужской" || result == "женский");
        }