Beispiel #1
0
        public void ValidateRnaAlphabetCompareSymbols()
        {
            RnaAlphabet alp = RnaAlphabet.Instance;

            Assert.IsTrue(alp.CompareSymbols(65, 65));

            ApplicationLog.WriteLine(
                "Alphabets BVT: Validation of CompareSymbols() method completed successfully.");
            Console.WriteLine(
                "Alphabets BVT: Validation of CompareSymbols() method completed successfully.");
        }
Beispiel #2
0
        public void TestRnaAlphabetCompareSymbols()
        {
            RnaAlphabet rnaAlphabet = RnaAlphabet.Instance;

            Assert.AreEqual(true, rnaAlphabet.CompareSymbols((byte)'A', (byte)'A'));

            Assert.AreEqual(true, rnaAlphabet.CompareSymbols((byte)'U', (byte)'U'));

            Assert.AreEqual(true, rnaAlphabet.CompareSymbols((byte)'G', (byte)'G'));

            Assert.AreEqual(true, rnaAlphabet.CompareSymbols((byte)'C', (byte)'C'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'A', (byte)'U'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'A', (byte)'G'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'A', (byte)'C'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'U', (byte)'A'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'U', (byte)'G'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'U', (byte)'C'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'G', (byte)'A'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'G', (byte)'U'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'G', (byte)'C'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'C', (byte)'A'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'C', (byte)'U'));

            Assert.AreEqual(false, rnaAlphabet.CompareSymbols((byte)'C', (byte)'G'));
        }