Ejemplo n.º 1
0
        public void ValidateDnaAlphabetLookupBySymbol()
        {
            DnaAlphabet   alp = DnaAlphabet.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.");
        }
Ejemplo n.º 2
0
        public void InValidateDnaAlphabetLookupBySymbol()
        {
            DnaAlphabet alp = DnaAlphabet.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.");
            }
        }