public void GeneralProperties_DoublePropertyName_TheProperty()
        {
            string propertyName  = "Time to expiry";
            object propertyValue = 42.0;

            m_InfoOutputPackage.Add(propertyName, propertyValue);
            m_InfoOutputPackage.Add("A second property name", "Second property value");  // add a second property

            InfoOutputProperty expectedInfoOutputProperty = new InfoOutputProperty("time To    Expiry", 42.0);

            var actualInfoOutputProperty = m_InfoOutputPackage.GeneralProperties[propertyName];

            Assert.That(actualInfoOutputProperty, PropertyNameValuePair.Matches(expectedInfoOutputProperty));
        }
        public void GeneralProperties_IdentifierStringProperty_TheProperty()
        {
            string propertyName  = "Day count convention";
            object propertyValue = IdentifierString.Create("30/360");

            m_InfoOutputPackage.Add(propertyName, propertyValue);
            m_InfoOutputPackage.Add("A second property name", "Second property value");  // add a second property

            InfoOutputProperty expectedInfoOutputProperty = new InfoOutputProperty("day  Count convention", propertyValue);

            var actualInfoOutputProperty = m_InfoOutputPackage.GeneralProperties[propertyName];

            Assert.That(actualInfoOutputProperty, PropertyNameValuePair.Matches(expectedInfoOutputProperty));
        }
        public void TestPropertyGroup_DoublePropertyName_TheProperty()
        {
            string propertyGroupName = "TestPropertyGroup";
            string propertyName      = "Time to expiry";
            object propertyValue     = 42.0;

            // here, we add a second property
            m_InfoOutputPackage.Add(propertyGroupName,
                                    InfoOutputProperty.Create(propertyName, propertyValue),
                                    InfoOutputProperty.Create("A second property name", "Second property value"));


            InfoOutputProperty expectedInfoOutputProperty = new InfoOutputProperty("time To    Expiry", 42.0);

            var actualInfoOutputProperty = m_InfoOutputPackage.GetProperty(propertyName, propertyGroupName);

            Assert.That(actualInfoOutputProperty, PropertyNameValuePair.Matches(expectedInfoOutputProperty));
        }