Exemplo n.º 1
0
        public void BrokenDomainObject_Initially_HasABrokenRule()
        {
            // Arrange
            var brokenDomainObject = new BrokenDomainObject();

            // Assert
            Assert.AreEqual(1, brokenDomainObject.GetBrokenRules().Count);
        }
Exemplo n.º 2
0
        public void BrokenDomainObject_BrokenRule_ThrowsException()
        {
            // Arrange
            var brokenDomainObject = new BrokenDomainObject();

            // Act
            brokenDomainObject.ThrowExceptionIfInvalid();

            // Assert
            Assert.IsTrue(false);
        }