public void ValidateDnaAlphabetGetBasicSymbols() { ISequence seq = new Sequence(Alphabets.DNA, "AGCTB"); DnaAlphabet alp = DnaAlphabet.Instance; ISequenceItem item = seq[4]; Assert.IsNotNull(alp.GetBasicSymbols(item)); item = seq[3]; Assert.IsNotNull(alp.GetBasicSymbols(item)); item = seq[3]; Assert.IsNotNull(alp.GetBasicSymbols(item)); // Logs to the NUnit GUI window ApplicationLog.WriteLine( "Alphabets BVT: Validation of GetBasicSymbols() method completed successfully."); Console.WriteLine( "Alphabets BVT: Validation of GetBasicSymbols() method completed successfully."); }
public void InValidateDnaAlphabetGetBasicSymbols() { DnaAlphabet alp = DnaAlphabet.Instance; try { alp.GetBasicSymbols(null); Assert.Fail(); } catch (ArgumentException) { // Logs to the NUnit GUI window ApplicationLog.WriteLine( "Alphabets P2: Validation of GetBasicSymbols() method completed successfully."); Console.WriteLine( "Alphabets P2: Validation of GetBasicSymbols() method completed successfully."); } }