Example #1
0
        public void BinaryAttribute_Add_RetrieveFail()
        {
            // Arrange
            BinaryAttrSet set  = new BinaryAttrSet();
            BinaryAttr    attr = new BinaryAttr("Test1", true, set);

            // Act
            set.AddAttribute(attr);
            BinaryAttr attrRetrieved = set.GetAttr("Test2");

            // Assert
            Assert.IsNull(attrRetrieved);
        }
Example #2
0
        public void BinaryAttribute_Add_RetrieveSuccess()
        {
            // Arrange
            BinaryAttrSet set  = new BinaryAttrSet();
            BinaryAttr    attr = new BinaryAttr("Test1", true, set);

            // Act
            set.AddAttribute(attr);
            BinaryAttr attrRetrieved = set.GetAttr("Test1");

            // Assert
            Assert.AreEqual(true, attrRetrieved.Value);
        }