public void SetUp() { serverOptions = new ServerOptions { WorldName = $"TestServerWorld{testCount++}" }; testWorld = new MyServerWorld(serverOptions); testWorld.CreateWorld(); }
public void WhenWorldCreatedOnInitiate_ShouldStillCallCallbacks() { testWorld.Dispose(); testWorld = new MyServerWorld(new ServerOptions { WorldName = $"TestServerCreatedOnInitiate{testCount++}", CreateWorldOnInstantiate = true }); WhenClientConnectedEventRaised_ShouldCallback(); WhenClientDisconnectedEventRaised_ShouldCallback(); WhenListeningEventRaised_ShouldCallback(); WhenListenFailedEventRaised_ShouldCallback(); WhenDisconnectingEventRaised_ShouldCallback(); }