public void OnModifiedTestMethod() { UANetworkingConfigurationEditor _newConfiguration = new UANetworkingConfigurationEditor(); Assert.IsNotNull(_newConfiguration); bool _ConfigurationFileChanged = false; _newConfiguration.OnModified += (x, y) => { _ConfigurationFileChanged = true; }; _newConfiguration.CreateDefaultConfiguration(); Assert.IsTrue(_ConfigurationFileChanged); Assert.IsNotNull(_newConfiguration.CurrentConfiguration); }
public void CreateDefaultConfigurationTestMethod() { UANetworkingConfigurationEditor _newConfiguration = new UANetworkingConfigurationEditor(); Assert.IsNotNull(_newConfiguration); _newConfiguration.CreateDefaultConfiguration(); Assert.IsNotNull(_newConfiguration.CurrentConfiguration); ConfigurationData _CurrentConfiguration = _newConfiguration.CurrentConfiguration; Assert.IsNotNull(_CurrentConfiguration.DataSets); Assert.AreEqual<int>(0, _CurrentConfiguration.DataSets.Length); Assert.IsNotNull(_CurrentConfiguration.MessageHandlers); Assert.AreEqual<int>(0, _CurrentConfiguration.MessageHandlers.Length); }
public void CreateDefaultConfigurationTestMethod() { UANetworkingConfigurationEditor _newConfiguration = new UANetworkingConfigurationEditor(); Assert.IsNotNull(_newConfiguration); _newConfiguration.CreateDefaultConfiguration(); Assert.IsNotNull(_newConfiguration.CurrentConfiguration); ConfigurationData _CurrentConfiguration = _newConfiguration.CurrentConfiguration; Assert.IsNotNull(_CurrentConfiguration.DataSets); Assert.AreEqual <int>(0, _CurrentConfiguration.DataSets.Length); Assert.IsNotNull(_CurrentConfiguration.MessageHandlers); Assert.AreEqual <int>(0, _CurrentConfiguration.MessageHandlers.Length); }
public void CreateDefaultConfigurationTestMethod() { Container _container = new Container(); ServiceLocator.SetLocatorProvider(() => _container); UANetworkingConfigurationEditor _newConfiguration = new UANetworkingConfigurationEditor(); Assert.IsNotNull(_newConfiguration); _newConfiguration.CreateDefaultConfiguration(); Assert.IsNotNull(_newConfiguration.CurrentConfiguration); ConfigurationData _CurrentConfiguration = _newConfiguration.CurrentConfiguration; Assert.IsNotNull(_CurrentConfiguration.DataSets); Assert.AreEqual <int>(0, _CurrentConfiguration.DataSets.Length); Assert.IsNotNull(_CurrentConfiguration.MessageHandlers); Assert.AreEqual <int>(0, _CurrentConfiguration.MessageHandlers.Length); }
public void OnModifiedTestMethod() { UANetworkingConfigurationEditor _newConfiguration = new UANetworkingConfigurationEditor(); Assert.IsNotNull(_newConfiguration); bool _ConfigurationFileChanged = false; _newConfiguration.OnModified += (x, y) => { _ConfigurationFileChanged = true; }; _newConfiguration.CreateDefaultConfiguration(); Assert.IsTrue(_ConfigurationFileChanged); Assert.IsNotNull(_newConfiguration.CurrentConfiguration); }