示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }