public void ValidateRnaAlphabetGetBasicSymbols() { ISequence seq = new Sequence(Alphabets.RNA, "AGCUB"); RnaAlphabet alp = RnaAlphabet.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 InValidateRnaAlphabetGetBasicSymbols() { RnaAlphabet alp = RnaAlphabet.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."); } }