// //You can use the following additional attributes as you write your tests: // //Use ClassInitialize to run code before running the first test in the class //[ClassInitialize()] //public static void MyClassInitialize(TestContext testContext) //{ //} // //Use ClassCleanup to run code after all tests in a class have run //[ClassCleanup()] //public static void MyClassCleanup() //{ //} // //Use TestInitialize to run code before running each test //[TestInitialize()] //public void MyTestInitialize() //{ //} // //Use TestCleanup to run code after each test has run //[TestCleanup()] //public void MyTestCleanup() //{ //} // #endregion internal virtual BaseServerOptions CreateBaseServerOptions() { // TODO: Instantiate an appropriate concrete class. BaseServerOptions target = new GoldSourceServerOptions(); return(target); }
public void CreateFromXmlTest() { XNode xServer = xServerForTest; // TODO: Initialize to an appropriate value BaseServerOptions expected = new GoldSourceServerOptions(); // TODO: Initialize to an appropriate value BaseServerOptions actual; actual = BaseServerOptions.CreateFromXml <GoldSourceServerOptions>(xServer); Assert.AreEqual(expected.CommandLine(), actual.CommandLine()); //Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " + // "Please call CreateFromXmlTestHelper<T>() with appropriate type parameters."); }
public AddEditServerGoldSource(MainWindow mainWindow, IServer server) { InitializeComponent(); this.serverOptions = new GoldSourceServerOptions(); if (server == null) { this.server = new GoldSourceServer(); } else { this.server = server; this.server.Options.CloneObjectProps(serverOptions); } this.InitializeFields(); this.mainWindow = mainWindow; DataContext = serverOptions; }
public GoldSourceServer() { _logger = HldslLogManager.GetLogManager().GetCurrentClassLogger(); Options = new GoldSourceServerOptions(); }