示例#1
0
        public void bilPrisTest()
        {
            //arrange
            var bil = new Bil("1234567", DateTime.Now, false, 240);

            //act
            int bilPris = bil.PrisForBilletStorebæltOgLille();

            //Assert
            Assert.AreEqual(240, bilPris);
        }
示例#2
0
        public void bilPrisMedBrobizz()
        {
            //arrange
            var bil = new Bil("1234567", DateTime.Now, true, 240);

            bil.DaysOfWeek = DayOfWeek.Monday;

            //act
            int pris = bil.PrisForBilletStorebæltOgLille();

            //Assert
            Assert.AreEqual(228, pris);
        }