public void IsInputStartWithUppercase_ThrowIndexOutOfRange_InputIsEmpty() { const string input = ""; var subject = new PlaygroundInterview.StringOperations(); Assert.Throws <IndexOutOfRangeException>(() => subject.IsInputStartWithUppercase(input)); }
public void IsInputStartWithUppercase_ThrowIndexOutOfRange_InputIsWithCapitalLetter() { const string input = "Test"; var subject = new PlaygroundInterview.StringOperations(); var result = subject.IsInputStartWithUppercase(input); Assert.That(result, Is.True); }
public void IsInputStartWithUppercase_ThrowNullReferenceException_InputIsNull() { var subject = new PlaygroundInterview.StringOperations(); Assert.Throws <NullReferenceException>(() => subject.IsInputStartWithUppercase(null)); }