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); }
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); }