Example #1
0
    public void Null_Value_Returns_Blank_Taxonomy(object input)
    {
        // Arrange
        var handler = new TaxonomyTypeHandler();

        // Act
        var result = handler.Parse(input);

        // Assert
        Assert.Same(Taxonomy.Blank, result);
    }
Example #2
0
    public void Valid_Value_Returns_TaxonomyType(string input, Taxonomy expected)
    {
        // Arrange
        var handler = new TaxonomyTypeHandler();

        // Act
        var result = handler.Parse(input);

        // Assert
        Assert.Same(expected, result);
    }
Example #3
0
    public void Invalid_Value_Returns_Blank_Taxonomy()
    {
        // Arrange
        var value   = Rnd.Str;
        var handler = new TaxonomyTypeHandler();

        // Act
        var result = handler.Parse(value);

        // Assert
        Assert.Same(Taxonomy.Blank, result);
    }