public void TestWithDataDirectory() { // GIVEN an empty config builder DarkRiftServerConfigurationBuilder builder = DarkRiftServerConfigurationBuilder.Create(); // WHEN a data directory is set builder.WithDataDirectory("directory"); // THEN the directory is set in the spawn data Assert.AreEqual("directory", builder.ServerSpawnData.Data.Directory); }