public void CashOutTest1() { Mock <Path> mockPath = new Mock <Path>(); Mock <Human> human = new Mock <Human>(); Checkout target = new Checkout(new Size(15, 25)); target.AddHuman(human.Object); target.CashOut().Should().Be(human.Object); target.NumberOfHumans.Should().Be(0); }
public void CashOutTest2() { Mock <Path> mockPath = new Mock <Path>(); Mock <GlobusShop> mockShop = new Mock <GlobusShop>(mockPath.Object); Mock <Human> human = new Mock <Human>(); Mock <Human> human1 = new Mock <Human>(); Checkout target = new Checkout(new Size(15, 25)); target.AddHuman(human.Object); target.AddHuman(human1.Object); target.CashOut().Should().Be(human.Object); target.NumberOfHumans.Should().Be(1); }