public void ValidateProteinAlphabetLookupBySymbol() { ProteinAlphabet alp = ProteinAlphabet.Instance; ISequenceItem itm = alp.LookupBySymbol("A"); Assert.AreEqual('A', itm.Symbol); itm = alp.LookupBySymbol("Ala"); Assert.AreEqual('A', itm.Symbol); // Logs to the NUnit GUI window ApplicationLog.WriteLine( "Alphabets BVT: Validation of LookupBySymbol() method completed successfully."); Console.WriteLine( "Alphabets BVT: Validation of LookupBySymbol() method completed successfully."); }
public void InValidateProteinAlphabetLookupBySymbol() { ProteinAlphabet alp = ProteinAlphabet.Instance; try { ISequenceItem itm = alp.LookupBySymbol(""); Assert.IsNotNull(itm); Assert.Fail(); } catch (ArgumentException) { // Logs to the NUnit GUI window ApplicationLog.WriteLine( "Alphabets P2: Validation of LookupBySymbol() method completed successfully."); Console.WriteLine( "Alphabets P2: Validation of LookupBySymbol() method completed successfully."); } }