Created
November 2, 2017 09:07
-
-
Save Hameds/c3237ff09ce552f26d0ea03b8d2f543f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Test] | |
| [ExpectedException(typeof(ArgumentException))] | |
| public void ShouldGetAnArgumentExceptionWhenCharacterToScanForIsLargerThanOneCharacter() | |
| { | |
| var sentenceToScan = "This test should throw an exception"; | |
| var characterToScanFor = "xx"; | |
| var stringUtils = new StringUtils(); | |
| stringUtils.FindNumberOfOccurences(sentenceToScan, characterToScanFor); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment