示例#1
0
        public void RemovingPropertyIsCorrect()
        {
            // Arrange
            _msieJsEngine.SetPropertyValue("shop", "products.product.price", 120.55m);

            // Act
            bool priceBeforeRemovingExists = _msieJsEngine.HasProperty("shop", "products.product.price");

            _msieJsEngine.RemoveProperty("shop", "products.product.price");
            bool priceAfterRemovingExists = _msieJsEngine.HasProperty("shop", "products.product.price");

            // Assert
            Assert.IsTrue(priceBeforeRemovingExists);
            Assert.IsFalse(priceAfterRemovingExists);
        }