Пример #1
0
        public void DoorwayToUnderworldTest_ProcessEffect_AddDoor()
        {
            string expectedMessage = "As the last rays of light disappear over the horizon the crackle of water quickly freezing can be heard originating from a shimmering gray portal that has appeared in the center of the now frozen lake.  The portal gives off an eerie gray light causing everything to look pale as if touched by dead while a cold breeze can be felt emanating from it adding to the effect.";

            doorwayToUnderworld.ProcessEffect(effectParameter.Object);

            Assert.IsTrue(roomAttrbuties.Contains(RoomAttribute.Light));
            Assert.AreEqual(1, roomAttrbuties.Count);
            notify.Verify(e => e.Room(null, null, room.Object, It.Is <ITranslationMessage>(f => f.Message == expectedMessage), null, false, false), Times.Once);
        }
Пример #2
0
        public void DoorwayToUnderworldTest_ProcessEffect_AddDoor()
        {
            DateTime dateTime = new DateTime(2000, 01, 01, 13, 0, 0);
            string   message  = "As the last rays of light disappear over the horizon the crackle of water quickly freezing can be heard originating from a shimmering gray portal that has appeared in the center of the now frozen lake.  The portal gives off an eerie gray light causing everything to look pale as if touched by dead while a cold breeze can be felt emanating from it adding to the effect.";

            gameDateTime.Setup(e => e.InGameDateTime).Returns(dateTime);
            tagWrapper.Setup(e => e.WrapInTag(message, TagType.Info)).Returns("message");

            doorwayToUnderworld.ProcessEffect(effectParameter.Object);

            Assert.IsTrue(roomAttrbuties.Contains(Objects.Room.Room.RoomAttribute.Light));
            Assert.AreEqual(1, roomAttrbuties.Count);
            notify.Verify(e => e.Room(null, null, room.Object, It.IsAny <ITranslationMessage>(), null, false, false), Times.Once);
        }