예제 #1
0
        public void VerifyVariant(int variantSize, int variantIndex, string expected)
        {
            switch (variantSize)
            {
            case 1:
                Assert.AreEqual(expected, Variants.GetVariant(variantIndex));
                break;

            case 2:
                Assert.AreEqual(expected, Variants.GetDoubleLengthVariant(variantIndex));
                break;

            case 3:
                Assert.AreEqual(expected, Variants.GetTripleLengthVariant(variantIndex));
                break;

            default:
                throw new NotImplementedException("Invalid use of variant size");
            }
        }