Exemplo n.º 1
0
        public void Test2()
        {
            bool weekday = false;
            bool golf    = false;

            //act
            bool isHooky = BasicProgramming.IsHooky(weekday, golf);

            //assert
            Assert.AreEqual(true, isHooky, "Its a weekend so we are playing hooky which means true.");
        }
Exemplo n.º 2
0
        public void Test3()
        {
            bool weekday = true;
            bool golf    = false;

            //act
            bool isHooky = BasicProgramming.IsHooky(weekday, golf);

            //assert
            Assert.AreEqual(false, isHooky, "Its a weekday but we are not playing golf so we return false here");
        }
Exemplo n.º 3
0
        public void Test1()
        {
            //arrange
            bool weekday = true;
            bool golf    = true;

            //act
            bool isHooky = BasicProgramming.IsHooky(weekday, golf);

            //assert
            Assert.AreEqual(true, isHooky, "Its a weekend and we are playing golf so return true.");
        }