Example #1
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);
        }
Example #2
0
        public void AddHumanTest()
        {
            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.NumberOfHumans.Should().Be(1);
        }