示例#1
0
        public void RandomChars_GenerateRandomSetsOfChars()
        {
            // Arrange
            LicensePlate licencePlateOne = new LicensePlate();
            // Act
            string charsOne = licencePlateOne.RandomChars();
            string charsTwo = licencePlateOne.RandomChars();

            // Assert
            Assert.NotEqual(charsOne, charsTwo);
        }
示例#2
0
        public void RamdomChars_GenerateRandomChar()
        {
            // Arrange
            LicensePlate licencePlateOne = new LicensePlate();
            // Act
            string chars        = licencePlateOne.RandomChars();
            char   firstLetter  = chars[0];
            char   secondLetter = chars[1];

            // Assert
            Assert.NotEqual(firstLetter, secondLetter);
        }