示例#1
0
        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.");
        }
示例#2
0
        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.");
            }
        }