Esempio n. 1
0
        private void PropertyThrowsExceptionOnNullEquivalent(string Property)
        {
            // Arrange
            var r = new DecimalPrecisionRule("ARuleName");

            // Act
            r.Property(Property);
        }
Esempio n. 2
0
        public void PropertyThrowsExceptionIfPropertyAlreadySet()
        {
            // Arrange
            var r = new DecimalPrecisionRule("ARuleName").Property("APropertyName");

            // Act
            r.Property("BPropertyName");
        }
Esempio n. 3
0
        public void PropertySetsProperty()
        {
            // Arrange
            var r    = new DecimalPrecisionRule("ARuleName");
            var name = "APropertyName";

            // Act
            r.Property(name);

            // Assert
            Assert.AreEqual(name, r.PropertyName);
        }