コード例 #1
0
        public void FindOrCreateNewGene()
        {
            var likeLoader = new LikeDataLoader(Context, "like.csv.short");

            likeLoader.CurrentRow = new[]
            {
                "bla",
                "ch1",
                "100",
                "200",
                "Bobs your ungle"
            };
            likeLoader.FindOrCreateGene();

            Assert.True(likeLoader.CurrentGene.Id > 0);
        }
コード例 #2
0
        public void FindOrCreateExistingGene()
        {
            var likeLoader = new LikeDataLoader(Context, "like.csv.short");

            likeLoader.CurrentRow = new[]
            {
                SymbolTestData.Symbols[0].Name,
                "ch1",
                "100",
                "200",
                "locus",
            };
            likeLoader.FindOrCreateGene();

            Assert.True(
                likeLoader.CurrentGene.Symbol.SingleOrDefault(s => s.Name == SymbolTestData.Symbols[0].Name) != null
                );
        }