public void ReturnAProduct_WhenBuildIsCalled() { var concreteBuilderCd = new ConcreteBuilderCd(); var actual = concreteBuilderCd.Build(); actual.Should().BeOfType <Product>(); }
public void ReturnAProductWithAPartTwo_WhenBuildIsCalled() { var expectedProduct = new Product(); expectedProduct.Add("Part D"); var concreteBuilderCd = new ConcreteBuilderCd(); concreteBuilderCd.IncludePartTwo(); var actual = concreteBuilderCd.Build(); actual.Should().BeEquivalentTo(expectedProduct); }