示例#1
0
        public void ParseShouldReturnOptionCharNone()
        {
            // Arrange
            var           s        = "not a char";
            Option <char> expected = None;

            // Act
            var result = CharType.Parse(s);

            // Assert
            result.Should().Be(expected);
        }
示例#2
0
        public void ParseShouldReturnOptionCharSome()
        {
            // Arrange
            var           s        = "A";
            Option <char> expected = Some('A');

            // Act
            var result = CharType.Parse(s);

            // Assert
            result.Should().Be(expected);
        }