add inline data unit test

pull/66/head
Alexandre AGOSTINHO 2 years ago
parent b00cee2d3e
commit 3be5ed1972

@ -12,5 +12,20 @@ namespace Model_UnitTests
Assert.NotNull(r.Title);
}
[Theory]
[InlineData("recipe", RecipeType.Dish, Priority.Light, "recipe", RecipeType.Dish, Priority.Light)]
[InlineData("No title.", RecipeType.Unspecified, Priority.Light, "", RecipeType.Unspecified, Priority.Light)]
[InlineData("re cipe", RecipeType.Unspecified, Priority.Light, "re cipe", RecipeType.Unspecified, Priority.Light)]
public void TestValuesConstructor(
string expectedTitle, RecipeType expectedType, Priority expectedPriority,
string title, RecipeType type, Priority priority)
{
Recipe rc = new Recipe(title, type, priority);
Assert.Equal(expectedTitle, rc.Title);
Assert.Equal(expectedType, rc.Type);
Assert.Equal(expectedPriority, rc.Priority);
}
}
}

Loading…
Cancel
Save