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