public void TestAbbreviationsClassDoNotFindUnexisting() { { Abbreviations abbs = new Abbreviations(); // Assert Assert.AreEqual("not found", abbs.FindExplanationFor("jne"), "FindExplanation should return 'not found' if the abbreviation does not exist!"); } }
public void TestAbbreviationsClassFindExpJNE() { { Abbreviations abbs = new Abbreviations(); abbs.AddAbbreviation("jne", "ja niin edelleen"); // Assert Assert.AreEqual("ja niin edelleen", abbs.FindExplanationFor("jne"), "FindExplanation should find the explanation!"); } }
public void TestAbbreviationsClassFindExpETC() { { Abbreviations abbs = new Abbreviations(); abbs.AddAbbreviation("etc", "et cetera"); // Assert Assert.AreEqual("et cetera", abbs.FindExplanationFor("etc"), "FindExplanation should find the explanation!"); } }
public void TestAbbreviationsClassFindExpNP() { { Abbreviations abbs = new Abbreviations(); abbs.AddAbbreviation("np", "no problem"); // Assert Assert.AreEqual("no problem", abbs.FindExplanationFor("np"), "FindExplanation should find the explanation!"); } }
public void TestAbbreviationsClassDoNotFindUnexisting() { Abbreviations abbs = new Abbreviations(); Assert.Equal("not found", abbs.FindExplanationFor("jne")); }
public void TestAbbreviationsClassFindExpJNE() { Abbreviations abbs = new Abbreviations(); abbs.AddAbbreviation("jne", "ja niin edelleen"); Assert.Equal("ja niin edelleen", abbs.FindExplanationFor("jne")); }
public void TestAbbreviationsClassFindExpETC() { Abbreviations abbs = new Abbreviations(); abbs.AddAbbreviation("etc", "et cetera"); Assert.Equal("et cetera", abbs.FindExplanationFor("etc")); }
public void TestAbbreviationsClassFindExpNP() { Abbreviations abbs = new Abbreviations(); abbs.AddAbbreviation("np", "no problem"); Assert.Equal("no problem", abbs.FindExplanationFor("np")); }