예제 #1
0
 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!");
     }
 }
예제 #2
0
 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!");
     }
 }
예제 #3
0
 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!");
     }
 }
예제 #4
0
 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!");
     }
 }
예제 #5
0
 public void TestAbbreviationsClassDoNotFindUnexisting()
 {
     Abbreviations abbs = new Abbreviations();
     Assert.Equal("not found", abbs.FindExplanationFor("jne"));
 }
예제 #6
0
 public void TestAbbreviationsClassFindExpJNE()
 {
     Abbreviations abbs = new Abbreviations();
     abbs.AddAbbreviation("jne", "ja niin edelleen");
     Assert.Equal("ja niin edelleen", abbs.FindExplanationFor("jne"));
 }
예제 #7
0
 public void TestAbbreviationsClassFindExpETC()
 {
     Abbreviations abbs = new Abbreviations();
     abbs.AddAbbreviation("etc", "et cetera");
     Assert.Equal("et cetera", abbs.FindExplanationFor("etc"));
 }
예제 #8
0
 public void TestAbbreviationsClassFindExpNP()
 {
     Abbreviations abbs = new Abbreviations();
     abbs.AddAbbreviation("np", "no problem");
     Assert.Equal("no problem", abbs.FindExplanationFor("np"));
 }