public void FindOrCreateNewGene() { var ucscLoader = new UcscDataLoader(Context, "ucsc.csv.short"); ucscLoader.CurrentRow = new[] { "bla", "ch1", "100", "200", "Bobs your ungle" }; ucscLoader.FindOrCreateGene(); Assert.True(ucscLoader.CurrentGene.Id > 0); }
public void FindOrCreateExistingGene() { var ucscLoader = new UcscDataLoader(Context, "ucsc.csv.short"); ucscLoader.CurrentRow = new[] { "bla", "ch1", "100", "200", SymbolTestData.Symbols[0].Name }; ucscLoader.FindOrCreateGene(); Assert.True( ucscLoader.CurrentGene.Symbol.SingleOrDefault(s => s.Name == SymbolTestData.Symbols[0].Name) != null ); }