예제 #1
0
        public void to_string_method_should_return_Empty_for_names_and_an_empty_string_for_type_when_crewMembers_are_null()
        {
            var smartFortwo = new SmartFortwo();

            var result = smartFortwo.ToString();

            Assert.Equal("Smart Fortwo:   |   Driver:  Empty   |   Passenger:  Empty", result);
        }
예제 #2
0
        public void to_string_method_should_show_return_smart_fortwo_information()
        {
            var smartFortwo = new SmartFortwo();

            smartFortwo.EnterBoth(new Pilot("driverName"), new Officer("passengerName"));

            var result = smartFortwo.ToString();

            Assert.Equal("Smart Fortwo:   |   Driver: Pilot driverName   |   Passenger: Officer passengerName", result);
        }