public void RemoveZeroWidthChars_NullProvided_ThrowsException() { var subject = new InputStringConvertors(ZeroWidthChars); Action action = () => subject.RemoveZeroWidthChars(null); action.Should().Throw <ArgumentNullException>(); }
public void RemoveZeroWidthChars_CleanStringProvided_ReturnsSourceString() { var source = CleanString; var subject = new InputStringConvertors(ZeroWidthChars); var result = subject.RemoveZeroWidthChars(source); result.Should().Be(source); }
public void RemoveZeroWidthChars_StringWithZeroWidthCharsProvided_ReturnsCleanString() { var source = StringWithZeroWidthChars; var expected = CleanString; var subject = new InputStringConvertors(ZeroWidthChars); var result = subject.RemoveZeroWidthChars(source); result.Should().Be(expected); }