Esempio n. 1
0
        public void GetPropertyNamesReferencedThrowsExceptionIfPropertyNameNotSet()
        {
            // Arrange
            var r = new RequiredRule("ARuleName");

            // Act
            var pNames = r.GetPropertyNamesReferenced();
        }
Esempio n. 2
0
        public void GetPropertyNamesReferencedReturnsValues()
        {
            // Arrange
            var r = new RequiredRule("ARuleName").Property("ARequiredProperty");

            // Act
            var pNames = r.GetPropertyNamesReferenced();

            // Assert
            Assert.IsNotNull(pNames);
            Assert.AreEqual(1, pNames.Count);
            Assert.AreEqual("ARequiredProperty", pNames[0]);
        }