예제 #1
0
            public void ShouldReturnCharacter_WhenGivenNullFormat()
            {
                // Arrange
                var codepoint = new CodePoint('A');

                // Act
                string result = codepoint.ToString((string)null);

                // Assert
                Assert.Equal("A", result);
            }
예제 #2
0
            public void ShouldReturnFormattedInteger_WhenGivenAnotherFormat()
            {
                // Arrange
                var codepoint = new CodePoint('A');

                // Act
                string result = codepoint.ToString("X4");

                // Assert
                Assert.Equal("0041", result);
            }
예제 #3
0
            public void ShouldReturnCharacter_WhenGivenNoArguments()
            {
                // Arrange
                var codepoint = new CodePoint('A');

                // Act
                string result = codepoint.ToString();

                // Assert
                Assert.Equal("A", result);
            }