public void TestWithAdvertisedPort() { // GIVEN an empty config builder DarkRiftServerConfigurationBuilder builder = DarkRiftServerConfigurationBuilder.Create(); // WHEN the advertised port is set builder.WithAdvertisedPort(1234); // THEN the port is set in the spawn data Assert.AreEqual(1234, builder.ServerSpawnData.ServerRegistry.AdvertisedPort); }