示例#1
0
        public void RandomChars_GenerateRandomSetsOfNums()
        {
            // Arrange
            LicensePlate licencePlateOne = new LicensePlate();
            // Act
            string numsOne = licencePlateOne.RandomNums();
            string numsTwo = licencePlateOne.RandomNums();

            // Assert
            Assert.NotEqual(numsOne, numsTwo);
        }
示例#2
0
        public void RandomNums_GenerateRandomNum()
        {
            // Arrange
            LicensePlate licencePlateOne = new LicensePlate();
            // Act
            string nums         = licencePlateOne.RandomNums();
            char   firstNumber  = nums[0];
            char   secondNumber = nums[1];

            // Assert
            Assert.NotEqual(firstNumber, secondNumber);
        }