public void AllPropertiesInAssemblyMustStartWithUppercaseWillFail() { PropertyNamingFirstLetterWatcher propertyNamingWatcher = new PropertyNamingFirstLetterWatcher(); propertyNamingWatcher.Configure(Naming.UpperCase); propertyNamingWatcher.WatchAssembly(typeof(DomainModel).Assembly); propertyNamingWatcher.Execute(); //ruleViolations contain all properties that are not uppercase var ruleViolations = propertyNamingWatcher.Issues; //Failure! Assert.That(ruleViolations.Count, Is.GreaterThan(0)); }
public void Setup() { sut = new PropertyNamingFirstLetterWatcher(); }