public void GenerateLicensePlate_GenerateALicensePlate() { // Arrange LicensePlate licencePlateOne = new LicensePlate(); int expected = 7; // Act licencePlateOne = licencePlateOne.GenerateLicensePlate(); int actual = licencePlateOne.LicenseNumber.Length; // Assert Assert.Equal(expected, actual); }
public void GenerateLicensePlate_GenerateDifferentLicensePlates() { // Arrange List <LicensePlate> licensePlates = new List <LicensePlate>(); // Act for (int i = 0; i < 10; i++) { LicensePlate licensePlate = new LicensePlate(); licensePlates.Add(licensePlate.GenerateLicensePlate()); } // Assert Assert.NotEqual(licensePlates[0].LicenseNumber, licensePlates[1].LicenseNumber); }