public void InMemoryDictiionaryBasedWordStructure_CheckHelper_CheckCompareException() { var sut1 = new WordAndLinksINMemory("aaa"); sut1.CompareTo(new object()); }
private WordAndLinksINMemory GetOrCreateNewAndGetWord(string stringKey) { WordAndLinksINMemory outWord; var trimedWord = stringKey.Trim(); if (this.allWords.ContainsKey(trimedWord)) { outWord = this.allWords[trimedWord]; } else { outWord = new WordAndLinksINMemory(trimedWord); this.allWords.Add(trimedWord, outWord); } return outWord; }
public void WordAndLinksINMemoryTests_WithDisabledValidation_ExpectNoException() { var badword = "syn%tdete1"; var sut = new WordAndLinksINMemory(badword, true); Assert.That(sut.Keyword, Is.EqualTo(badword)); }
public void Setup() { this.sut1 = new WordAndLinksINMemory("aaa"); this.sut2 = new WordAndLinksINMemory("bbb"); this.sut3 = new WordAndLinksINMemory("bbb"); }
public void WordAndLinksINMemoryTests_InitialiseWithEmptyKeyword_ReturnExeption() { var sut = new WordAndLinksINMemory(string.Empty); }