public void Test_GetGenders() { var data = new AdoData(); var actual = data.GetGenders(); Assert.NotNull(actual.Count); }
//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); }
public void Test_GetGenders() { //arrange AdoData data = new AdoData(); var expected = 3; //act var actual = data.GetGenders(); //assert Assert.Equal(expected, actual.Count); }