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