public void RandomChars_GenerateRandomSetsOfNums() { // Arrange LicensePlate licencePlateOne = new LicensePlate(); // Act string numsOne = licencePlateOne.RandomNums(); string numsTwo = licencePlateOne.RandomNums(); // Assert Assert.NotEqual(numsOne, numsTwo); }
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); }