protected ProjectLayoutElement GetOverrideElement(string overrideName, string overrideValue) { _testDeck.ProcessLinesPublic( new List <List <string> >() { new List <string>() { "a", "override:testElement:" + overrideName }, new List <string>() { "1", overrideValue } }, new List <List <string> >(), null); Assert.AreEqual(1, _testDeck.ValidLines.Count); return(_testDeck.GetOverrideElement(_testElement, _testDeck.ValidLines[0], false)); }
// this test is useless without the moq or something to detect cache //[Test] public void ValidateCache() { const string expected = "sample string with nothing special."; _testDeck.ProcessLinesPublic(new List <List <string> >(), new List <List <string> >(), "test"); var result = _testDeck.TranslateString(expected, _testLine, _testElement, false); var secondResult = _testDeck.TranslateString(expected, _testLine, _testElement, false); // TODO: moq or something to validate the cache was actually hit Assert.AreEqual(result, secondResult); }