Example #1
0
    public void Invalid_Long_Returns_None_With_ValueIsInvalidTermIdMsg()
    {
        // Arrange
        var type  = typeof(ParseTermId_Tests);
        var value = Rnd.Str;

        // Act
        var result = TermCustomField.ParseTermId(type, value);

        // Assert
        result.AssertNone().AssertType <ValueIsInvalidTermIdMsg>();
    }
Example #2
0
    public void Valid_Long_Returns_TermId()
    {
        // Arrange
        var type  = typeof(ParseTermId_Tests);
        var value = Rnd.ULng;

        // Act
        var result = TermCustomField.ParseTermId(type, value.ToString());

        // Assert
        var some = result.AssertSome();

        Assert.Equal(value, some.Value);
    }