예제 #1
0
        public void beginTimeTest()
        {
            //Arrange
            DateTime beginnigTime;

            //Act
            DataForTest.setTestTime();
            beginnigTime = DataForTest.giveBeginTime();
            //Assert

            Assert.AreEqual(beginnigTime, new DateTime(2020, 5, 10, 4, 0, 0));
        }
예제 #2
0
        public void hourSpanTest()
        {
            //Arrange
            double hourSpan;

            //Act
            DataForTest.setTestTime();
            hourSpan = DataForTest.giveHourSpan();
            //Assert

            Assert.AreEqual(hourSpan, 8.0d);
        }
예제 #3
0
        public void nameTest()
        {
            //Arrange
            string name;

            //Act
            DataForTest.setTestWorker();
            name = DataForTest.giveName();
            //Assert

            Assert.AreEqual(name, "Jan");
        }
예제 #4
0
        public void emailTest()
        {
            //Arrange
            string email;

            //Act
            DataForTest.setTestWorker();
            email = DataForTest.giveEmail();
            //Assert

            Assert.AreEqual(email, "*****@*****.**");
        }
예제 #5
0
        public void addressTest()
        {
            //Arrange
            string address;

            //Act
            DataForTest.setTestWorker();
            address = DataForTest.giveAddress();
            //Assert

            Assert.AreEqual(address, "Warszawa");
        }
예제 #6
0
        public void phoneTest()
        {
            //Arrange
            int phoneNumber;

            //Act
            DataForTest.setTestWorker();
            phoneNumber = DataForTest.givePhone();
            //Assert

            Assert.AreEqual(phoneNumber, 725321843);
        }
예제 #7
0
        public void surnameTest()
        {
            //Arrange
            string surname;

            //Act
            DataForTest.setTestWorker();
            surname = DataForTest.giveSurame();
            //Assert

            Assert.AreEqual(surname, "Kowalski");
        }
예제 #8
0
        public void endTimeTest()
        {
            //Arrange
            DateTime endTime;

            //Act
            DataForTest.setTestTime();
            endTime = DataForTest.giveEndTime();
            //Assert

            Assert.AreEqual(endTime, new DateTime(2020, 5, 10, 12, 0, 0));
        }