public void DeleteTest() { long matchid = 3607383684; Expression <Func <Match, bool> > expression = match => match.match_id != matchid; //delete all matches except for the one used in the read test BasicReader reader = new BasicReader(); reader.Delete(expression); long[] result = reader.ListAllMatches(); Assert.IsTrue(result.Count() == 1); }
public void ListAllMatchesTest() { Int64[] result; BasicReader reader = new BasicReader(); result = reader.ListAllMatches(); Assert.IsNotNull(result); for (int i = 0; i < result.Count(); i++) { Console.WriteLine(result[i]); } }