public void Is_Given_An_Item_Of_Type_blockquote_Then_Is_Valid_Returns_True(BlockQuoteControlFactory factory) { var control = BuildControl(); var actual = factory.IsValid(control); actual.Should().BeTrue(); }
public void Is_Given_An_Item_Of_Type_blockquote_Then_Is_Valid_Returns_False(BlockQuoteControlFactory factory) { var control = new ItemBuilder().SetType("paragraph") .SetValue("To become an apprentice, you must: ") .SetTableValue(new List <string>()) .Build(); var actual = factory.IsValid(control); actual.Should().BeFalse(); }
public void Is_Given_An_Item_Of_Type_blockquote_Then_Create_Returns_BlockQuote(BlockQuoteControlFactory factory) { var control = BuildControl(); var actual = factory.Create(control) as BlockQuote; actual.Should().NotBeNull(); actual.Content.Any().Should().BeTrue(); }