Esempio n. 1
0
        public void PropertyNameFormatIsCorrect()
        {
            // Arrange

            // Act
            bool propertyName1IsCorrect = _msieJsEngine.CheckPropertyNameFormat("good_parts");
            bool propertyName2IsCorrect = _msieJsEngine.CheckPropertyNameFormat("good_parts.list");
            bool propertyName3IsCorrect = _msieJsEngine.CheckPropertyNameFormat("Products.Product.Price");
            bool propertyName4IsCorrect = _msieJsEngine.CheckPropertyNameFormat("$grid.rows.cells");
            bool propertyName5IsCorrect = _msieJsEngine.CheckPropertyNameFormat("a");

            // Assert
            Assert.IsTrue(propertyName1IsCorrect);
            Assert.IsTrue(propertyName2IsCorrect);
            Assert.IsTrue(propertyName3IsCorrect);
            Assert.IsTrue(propertyName4IsCorrect);
            Assert.IsTrue(propertyName5IsCorrect);
        }