public void VersionTest() { StingrayOQ_Accessor target = new StingrayOQ_Accessor(); string version = target.Version(); //Version must match AssemblyVersion in Mockups->AssemblyInfo.cs Assert.AreEqual("1.42.3.5", version, "Version"); }
public void StingrayOQConstructorTest() { // StingrayOQ target = new StingrayOQ(); StingrayOQ_Accessor target = new StingrayOQ_Accessor(); // base Properties Assert.AreEqual("finantic's Execution Provider for Interactive Brokers", target.description, "Description"); Assert.AreEqual(129, target.id, "Id"); Assert.AreEqual("StingrayOQ", target.name, "Name"); Assert.AreEqual("http://www.finantic.de", target.url, "Url"); // Properties Assert.AreEqual("1.42.3.5", target.StingrayOQVersion, "StingrayOQVersion"); Assert.AreEqual(4262, target.ClientId, "ClientId"); Assert.AreEqual("127.0.0.1", target.Hostname, "HostName"); Assert.AreEqual(LogDestination.File, target.LogDestination, "LogDestination"); Assert.AreEqual(LoggerLevel.Error, target.LoggerLevel, "LoggerLevel"); Assert.AreEqual(false, target.OutsideRTH, "OutsideRTH"); Assert.AreEqual(7496, target.Port, "Port"); // TWS default port Assert.AreEqual(false, target.TWSConnected, "TWSConnected"); Assert.AreEqual(true, target.AutoTransmit, "AutoTransmit"); // FA Assert.AreEqual(FinancialAdvisorAllocationMethod.None, target.FAMethod, "FAMethod"); Assert.AreEqual(null, target.FAGroup, "FAGroup"); Assert.AreEqual(null, target.FAPercentage, "FAPercentage"); Assert.AreEqual(null, target.FAProfile, "FAProfile"); //Version must match AssemblyVersion in Mockups->AssemblyInfo.cs Assert.AreEqual("1.42.3.5", target.Version(), "Version"); // Accounts Assert.IsNotNull(target.Accounts, "Accounts not null"); // Broker Info BrokerInfo brokerInfo = target.GetBrokerInfo(); Assert.IsNotNull(brokerInfo, "brokerInfo not null"); }
public void VersionTest() { StingrayOQ_Accessor target = new StingrayOQ_Accessor(); string version = target.Version(); //Version must match AssemblyVersion in Mockups->AssemblyInfo.cs Assert.AreEqual("1.42.3.5", version, "Version"); }
public void StingrayOQConstructorTest() { // StingrayOQ target = new StingrayOQ(); StingrayOQ_Accessor target = new StingrayOQ_Accessor(); // base Properties Assert.AreEqual("finantic's Execution Provider for Interactive Brokers", target.description, "Description"); Assert.AreEqual(129, target.id, "Id"); Assert.AreEqual("StingrayOQ", target.name, "Name"); Assert.AreEqual("http://www.finantic.de", target.url, "Url"); // Properties Assert.AreEqual("1.42.3.5", target.StingrayOQVersion, "StingrayOQVersion"); Assert.AreEqual(4262, target.ClientId, "ClientId"); Assert.AreEqual("127.0.0.1", target.Hostname, "HostName"); Assert.AreEqual(LogDestination.File, target.LogDestination, "LogDestination"); Assert.AreEqual(LoggerLevel.Error, target.LoggerLevel, "LoggerLevel"); Assert.AreEqual(false, target.OutsideRTH, "OutsideRTH"); Assert.AreEqual(7496, target.Port, "Port"); // TWS default port Assert.AreEqual(false, target.TWSConnected, "TWSConnected"); Assert.AreEqual(true, target.AutoTransmit, "AutoTransmit"); // FA Assert.AreEqual(FinancialAdvisorAllocationMethod.None, target.FAMethod, "FAMethod"); Assert.AreEqual(null, target.FAGroup, "FAGroup"); Assert.AreEqual(null, target.FAPercentage, "FAPercentage"); Assert.AreEqual(null, target.FAProfile, "FAProfile"); //Version must match AssemblyVersion in Mockups->AssemblyInfo.cs Assert.AreEqual("1.42.3.5", target.Version(), "Version"); // Accounts Assert.IsNotNull(target.Accounts, "Accounts not null"); // Broker Info BrokerInfo brokerInfo = target.GetBrokerInfo(); Assert.IsNotNull(brokerInfo, "brokerInfo not null"); }