public void Test_GetGenders()
        {
            var data   = new AdoData();
            var actual = data.GetGenders();

            Assert.NotNull(actual.Count);
        }
Exemple #2
0
        //Negative tests
        public void Test_GetRecentGenders()
        {
            AdoData data     = new AdoData();
            var     expected = 5;

            var actual = data.GetGenders();

            Assert.Equal(expected, actual.Count);
        }
        public List <GenderDAO> GetGenders()
        {
            var g = new List <GenderDAO>();

            foreach (var gender in data.GetGenders())
            {
                g.Add(GenderMapper.MapToGenderDAO(gender));
            }

            return(g);
        }
Exemple #4
0
        public void Test_GetGenders()
        {
            //arrange
            AdoData data     = new AdoData();
            var     expected = 3;

            //act
            var actual = data.GetGenders();

            //assert
            Assert.Equal(expected, actual.Count);
        }