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