public void TestDefaults() { var options = ArgsOptions.Parse(new string[0]); Assert.IsTrue(options.ServerPort > 0); Assert.IsFalse(string.IsNullOrEmpty(options.GameInfoJsonPath)); }
public void TestConfigAndPort() { var port = 5839; var config = "/some/config/path.json"; var args = new[] { "--port", port.ToString(), "--config", config }; var options = ArgsOptions.Parse(args); Assert.AreEqual(port, options.ServerPort); Assert.AreEqual(config, options.GameInfoJsonPath); }