예제 #1
0
        public void LooksForNearByThingsWhenHunting()
        {
            this.mockThingManager.Setup(m => m.FindThingsNear(parent)).Returns(new List<Thing>());

            var grue = new GrueBehavior(mockThingManager.Object) { Parent = parent };
            grue.Hunt();
            this.mockThingManager.Verify(m => m.FindThingsNear(parent));
        }
예제 #2
0
        public void LooksForNearByThingsWhenHunting()
        {
            this.mockThingManager.Setup(m => m.FindThingsNear(parent)).Returns(new List <Thing>());
            var grue = new GrueBehavior()
            {
                Parent = parent
            };

            grue.Hunt();
            this.mockThingManager.Verify(m => m.FindThingsNear(parent));
        }