public void TestConstructor2()
        {
            stsid = new SymbolTickerSecurityIdDetails("A", SecurityIdType.SymbolTicker, finMarkets, "SuperSpecial");

            Assert.IsTrue(stsid is SecurityIdDetails, "Wrong type of SymbolTickerSecurityIdDetails");
            Assert.AreEqual(stsid.Id, "A", "Wrong constructor implementation.");
            Assert.AreEqual(stsid.Type, SecurityIdType.SymbolTicker, "Wrong constructor implementation.");
            Assert.AreEqual(stsid.SpecialCode, "SuperSpecial", "Wrong constructor implementation.");

            //References of the arrays must not be same
            Assert.IsFalse(object.ReferenceEquals(UnitTestHelper.GetPrivateFieldValue(stsid, "financialMarkets"),
                                                  finMarkets), "Wrong constructor implementation.");

            //But contents must be same
            Assert.IsTrue(UnitTestHelper.AreReferenceIdsEqual(
                              UnitTestHelper.GetPrivateFieldValue(stsid, "financialMarkets") as string[], finMarkets),
                          "Wrong constructor implementation.");
        }
 public void TestConstructorFail1()
 {
     stsid = new SymbolTickerSecurityIdDetails("A", "B", null, "SuperSpecial");
 }
 public void TearDown()
 {
     finMarkets = null;
     stsid      = null;
 }
 public void SetUp()
 {
     finMarkets = new string[] { "NYSE", "NASDAQ" };
     stsid      = new SymbolTickerSecurityIdDetails("A", SecurityIdType.SymbolTicker, finMarkets);
 }
 public void TestSpecialCode()
 {
     stsid = new SymbolTickerSecurityIdDetails("A", SecurityIdType.SymbolTicker, finMarkets, "SuperSpecial");
     Assert.AreEqual(stsid.SpecialCode, "SuperSpecial", "Wrong getter implementation.");
 }
 public void TestConstructorFail5()
 {
     stsid = new SymbolTickerSecurityIdDetails("A", "B", finMarkets, "  ");
 }
 public void TestConstructorFail4()
 {
     stsid = new SymbolTickerSecurityIdDetails("A", "B", new string[] { "   " }, "SuperSpecial");
 }