public void ShouldReturnThreeFloorLayout() { //arrange FluentStringTower fluentStringTower = new FluentStringTower(); //assert fluentStringTower.WithFloorCount(3).Layout().AsStringArray().Should().BeEquivalentTo(" * ", " *** ", "*****"); }
public void ShouldReturnEmptyString() { //arrange FluentStringTower fluentStringTower = new FluentStringTower(); //act string[] actualReturn = fluentStringTower.AsStringArray(); //assert actualReturn.Should().BeEmpty(); }
public void ShouldReturnTwoFloorLayout() { //arrange FluentStringTower fluentStringTower = new FluentStringTower(); //act FluentStringTower actualTower = fluentStringTower.WithFloorCount(2).Layout(); //assert actualTower.AsStringArray().Should().BeEquivalentTo(" * ", "***"); }
public void ShouldReturnEmptyStringUntilLayoutCalled() { //arrange FluentStringTower fluentStringTower = new FluentStringTower(); //act FluentStringTower actualTower = fluentStringTower.WithFloorCount(1); //assert actualTower.AsStringArray().Should().BeEmpty(); }
public void ShouldReturnFloorCount() { //arrange FluentStringTower fluentStringTower = new FluentStringTower(); //act int actualFloors = fluentStringTower.WithFloorCount(1).FloorCount(); //assert actualFloors.Should().Be(1); }