Esempio n. 1
0
        public void ArchaeopteryxOpened_CharacterLeavesTerritory_CharacterInTileCreatures()
        {
            var mockCharacter = new Character();

            mockCharacter.CreditArchaeopteryx(new Archaeopteryx());
            var mockTile      = new MockTile(mockCharacter, 3, 3, 2, 2);
            var mockTerritory = new MockHiddenTerritory(mockCharacter, new Archaeopteryx(), mockTile);

            mockTerritory.OpenTerritory(mockCharacter);
            mockTerritory.EnterTerritory(mockCharacter);
            mockTerritory.LeaveTerritory(mockCharacter);
            var characterMoved = mockTile.creatures.Contains(mockCharacter);

            Assert.True(characterMoved);
        }
Esempio n. 2
0
        public void ArchaeopteryxOpened_PackEntersAndLeavesTerritory_PackInTileCreatures()
        {
            var mockCharacter = new Character();

            mockCharacter.CreditArchaeopteryx(new Archaeopteryx());
            var mockAnchiornis = new Anchiornis();

            mockAnchiornis.IncreaseFriendliness(25);
            mockCharacter.AddToPack(mockAnchiornis);
            var mockTile      = new MockTile(mockCharacter, 3, 3, 2, 2);
            var mockTerritory = new MockHiddenTerritory(mockCharacter, new Archaeopteryx(), mockTile);

            mockTerritory.OpenTerritory(mockCharacter);
            mockTerritory.EnterTerritory(mockCharacter);
            mockTerritory.LeaveTerritory(mockCharacter);
            var packMoved = mockTile.creatures.Contains(mockAnchiornis);

            Assert.True(packMoved);
        }