コード例 #1
0
        public void Generate_0_Characters_Returns_Six()
        {
            //Arrange
            IQaStringGeneratorService service = new QaStringGeneratorService();
            //Act
            var actual = service.Generate(0, Six);

            //Assert
            Assert.AreEqual(Six, actual);
        }
コード例 #2
0
        public void Generate_10_Characters_With_Six_Returns_NoWrap_Six_QaApproved()
        {
            //Arrange
            IQaStringGeneratorService service = new QaStringGeneratorService();
            //Act
            var actual = service.Generate(10, Six, true);

            //Assert
            Assert.AreEqual("123456_10_", actual);
        }
コード例 #3
0
        public void Generate_0_Characters_Returns_AlphabetSoup()
        {
            //Arrange
            IQaStringGeneratorService service = new QaStringGeneratorService();
            //Act
            var actual = service.Generate(0);

            //Assert
            Assert.AreEqual(QaStringGeneratorService.AlphabetSoup, actual);
        }
コード例 #4
0
        public void Generate_0_Characters_Returns_AlphabetSoup_QaApproved()
        {
            //Arrange
            IQaStringGeneratorService service = new QaStringGeneratorService();

            //Act
            var actual = service.Generate(0, true);

            //Assert
            Assert.AreEqual(QaStringGeneratorService.AlphabetSoup + "_30_", actual);
        }
コード例 #5
0
        public void Generate_Negative_Count_Characters_Returns_Six_QaApproved()
        {
            //Arrange
            IQaStringGeneratorService service = new QaStringGeneratorService();

            //Act
            var actual = service.Generate(-1, Six, true);

            //Assert
            Assert.AreEqual("123456_9_", actual);
        }
コード例 #6
0
        public void Generate_7_Characters_Six_Returns_7()
        {
            //Arrange
            IQaStringGeneratorService service = new QaStringGeneratorService();
            //Act
            var actual = service.Generate(7, Six);

            //Assert
            Assert.AreEqual("1234561", actual);
        }
コード例 #7
0
        public void Generate_7_Characters_Returns_4_QaApproved()
        {
            //Arrange
            IQaStringGeneratorService service = new QaStringGeneratorService();
            //Act
            var actual = service.Generate(7, Six, true);

            //Assert
            Assert.AreEqual("1234_7_", actual);
        }