public void BrokenDomainObject_Initially_HasABrokenRule() { // Arrange var brokenDomainObject = new BrokenDomainObject(); // Assert Assert.AreEqual(1, brokenDomainObject.GetBrokenRules().Count); }
public void BrokenDomainObject_BrokenRule_ThrowsException() { // Arrange var brokenDomainObject = new BrokenDomainObject(); // Act brokenDomainObject.ThrowExceptionIfInvalid(); // Assert Assert.IsTrue(false); }