Example #1
0
        public void GetSalary_PanIsSad_ReturnsFalse()
        {
            //Arrange
            PolishPan polishPan = new PolishPan();

            polishPan.SetBadMood("hadn`t sex by whole mounth");

            CafeGirl cafeGirl = new CafeGirl("Janina", polishPan);

            //Act
            string result = cafeGirl.GetSalary();

            //Assert
            Assert.AreEqual("mało", result);
        }
Example #2
0
        public void GetDriver_ReturnsPolishPan()
        {
            //Arrange
            CafeGirl cafeGirl = new CafeGirl("Lisa");

            //Act
            cafeGirl.SetDriver(new PolishPan()
            {
                Name = "Jacek"
            });
            var result = cafeGirl.GetDriver();

            //Assert
            Assert.AreEqual(new PolishPan().GetType(), result.GetType());
        }
Example #3
0
        public void GetSalary_PanIsSad_ReturnsTrue()
        {
            //Arrange
            PolishPan polishPan = new PolishPan();

            polishPan.SetGoodMood("had sex two hours ago");

            CafeGirl cafeGirl = new CafeGirl("Polina", polishPan);

            //Act
            string result = cafeGirl.GetSalary();

            //Assert
            Assert.AreEqual("spoko", result);
        }