Exemplo n.º 1
0
        public async Task Exception_thrown_on_creation_of_zone_with_blank_name()
        {
            // Arrange
            IZoneFactory zoneFactory = new MudZoneFactory(Mock.Of<IRoomFactory>());

            // Act
            IZone zone = await zoneFactory.CreateZone(null, Mock.Of<IRealm>());
        }
Exemplo n.º 2
0
        public async Task Create_zone_with_name_assigns_name()
        {
            // Arrange
            const string _zoneName = "Test Zone";
            IZoneFactory zoneFactory = new MudZoneFactory(Mock.Of<IRoomFactory>());

            // Act
            IZone zone = await zoneFactory.CreateZone(_zoneName, Mock.Of<IRealm>());

            // Assert
            Assert.AreEqual(_zoneName, zone.Name);
        }