public void ShouldReturnCharacter_WhenGivenNullFormat() { // Arrange var codepoint = new CodePoint('A'); // Act string result = codepoint.ToString((string)null); // Assert Assert.Equal("A", result); }
public void ShouldReturnFormattedInteger_WhenGivenAnotherFormat() { // Arrange var codepoint = new CodePoint('A'); // Act string result = codepoint.ToString("X4"); // Assert Assert.Equal("0041", result); }
public void ShouldReturnCharacter_WhenGivenNoArguments() { // Arrange var codepoint = new CodePoint('A'); // Act string result = codepoint.ToString(); // Assert Assert.Equal("A", result); }