Пример #1
0
        public static void ClassInitialize(TestContext context)
        {
            _testContext    = context;
            _wordDictionary = WordList.Create();

            GenerateInputPairs();
        }
Пример #2
0
        public static bool TestTransformation(string from, string to)
        {
            var wordList                  = WordList.Create();
            var naiveImplementation       = NaiveImplementation.Create(wordList);
            var precomputedImplementation = PrecomputedImplementation.Create(wordList);

            var naiveResult       = naiveImplementation.HasValidTransformation(from, to);
            var precomputedResult = precomputedImplementation.HasValidTransformation(from, to);

            Assert.AreEqual(naiveResult, precomputedResult);
            return(naiveResult);
        }
Пример #3
0
 public void TestInitialize()
 {
     _wordList = WordList.Create();
 }