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); }
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); }
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); }