Ejemplo n.º 1
0
        public void TestNewOrNahServiceTrue()
        {
            // arrange
            DateTime date = DateTime.Now;

            // act
            PcPartBasic partBasic = new PcPartBasic
            {
                Hot = DtoServices.NewOrNah(date)
            };

            // assert
            Assert.True(partBasic.Hot);
        }
Ejemplo n.º 2
0
        [Fact] // isnt right when testingen but when debugging it is?
        public void TestNewOrNahServiceFalse()
        {
            // arrange
            DateTime date = DateTime.Now.Subtract(new TimeSpan(6, 0, 0, 0));

            // act
            PcPartBasic partBasic = new PcPartBasic
            {
                Hot = DtoServices.NewOrNah(date)
            };

            // assert
            Assert.True(!partBasic.Hot);
        }