public void NameProperty_MoreThanSixLetterName_ShouldThrowExceptionTest() { // Arrange Airline airline = new Airline("AS234"); string expected = "AS234"; // Act airline.ChangeName("123asdss"); string actual = airline.Name; // Assert Assert.Equal(expected, actual); }
public void NameProperty_LessThanSixLetterNameWithOtherSymbols_ShouldPassTest() { // Arrange Airline airline = new Airline("AS234"); string expected = "AS234"; // Act airline.ChangeName("AA_@"); string actual = airline.Name; // Assert Assert.Equal(expected, actual); }
public void NameProperty_LessThanSixLetterNameWithNumbersAndSmallLetters_ShouldPassTest() { // Arrange Airline airline = new Airline("AS234"); string expected = "AS234"; // Act airline.ChangeName("123sd"); string actual = airline.Name; // Assert Assert.Equal(expected, actual); }
public void NameProperty_EmptyName_ShouldPassTest() { // Arrange Airline airline = new Airline("AS234"); string expected = "AS234"; // Act airline.ChangeName(""); string actual = airline.Name; // Assert Assert.Equal(expected, actual); }