コード例 #1
0
        public void BrokenDomainObject_Initially_HasABrokenRule()
        {
            // Arrange
            var brokenDomainObject = new BrokenDomainObject();

            // Assert
            Assert.AreEqual(1, brokenDomainObject.GetBrokenRules().Count);
        }
コード例 #2
0
        public void BrokenDomainObject_BrokenRule_ThrowsException()
        {
            // Arrange
            var brokenDomainObject = new BrokenDomainObject();

            // Act
            brokenDomainObject.ThrowExceptionIfInvalid();

            // Assert
            Assert.IsTrue(false);
        }