public void AnalizNitrogenadoTrue() { //Arange string[] dna = { "ATGCGA", "CAGTGC", "TTATGT", "AGAAGG", "CCCCTA", "TCACTG" }; bool expected = true; //Act var actual = AnalyzeNitrogenado.SearchNitrogeno(dna); //Assert Assert.Equal(expected, actual.outNitro); }
//Analiza si los datos que le paso estan dentro del nitrogeno permitido public void AnalizNitrogenadoToNumberFalse() { //Arange string[] dna = { "789456", "CAGTGC", "TTATGT", "AGAAGG", "CCCCTA" }; bool expected = false; //Act var actual = AnalyzeNitrogenado.SearchNitrogeno(dna); //Assert Assert.Equal(expected, actual.outNitro); }
private string[,] ConvertToMatriz(string[] dna) { var outMatriz = AnalyzeNitrogenado.SearchNitrogeno(dna); return(outMatriz.outMatrix); }
/// <summary> /// Busca nitrogenada /// </summary> /// <param name="dna"></param> /// <returns>bool y un arreglo de NXN</returns> public (bool, string[, ]) SearchNitrogeno(string[] dna) { return(AnalyzeNitrogenado.SearchNitrogeno(dna)); }