Exemple #1
0
 public void TryingToSpecifyWithoutAdictionaryThrows()
 {
     Assert.IsTrue(
         ExtExcept.IsThrowsException <InvalidOperationException>(
             () => GenericSpacerTest(null, "word", "word")
             )
         );
 }
Exemple #2
0
 public void SettingEmptyDictionaryThrows()
 {
     Assert.IsTrue(
         ExtExcept.IsThrowsException <ArgumentException>(
             () => {
         var s = new Spacefier();
         s.SetDictonary(new string[] { });
     }));
 }
Exemple #3
0
 public void SingleWordDictionaryWontThrow()
 {
     Assert.IsFalse(
         ExtExcept.IsThrowsException <ArgumentException>(
             () => {
         var s = new Spacefier();
         s.SetDictonary(SingleWordDic);
         new Spacefier(SingleWordDic);
     }));
 }
Exemple #4
0
 public void IndexesShouldNotBeNull()
 {
     Assert.IsTrue(ExtExcept.IsThrowsException <ArgumentNullException>(() => Spacefier.insertSpacesIntoString("", null, 15)));
 }