public void TestWithMaxReconnectAttempts() { // GIVEN an empty config builder DarkRiftServerConfigurationBuilder builder = DarkRiftServerConfigurationBuilder.Create(); // WHEN max reconnect attempts are set builder.WithMaxReconnectAttempts(123); // THEN the max reconnect attempts are set in the spawn data Assert.AreEqual(123, builder.ServerSpawnData.Server.ReconnectAttempts); }