Beispiel #1
0
        public void ValidateRnaAlphabetLookupBySymbol()
        {
            RnaAlphabet   alp = RnaAlphabet.Instance;
            ISequenceItem itm = alp.LookupBySymbol("A");

            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.");
        }
Beispiel #2
0
        public void InValidateRnaAlphabetLookupBySymbol()
        {
            RnaAlphabet alp = RnaAlphabet.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.");
            }
        }