public static void ClassInitialize(TestContext context) { _testContext = context; _wordDictionary = WordList.Create(); GenerateInputPairs(); }
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); }
public void TestInitialize() { _wordList = WordList.Create(); }