public void PropertyNamingWatcherLowerCaseCheck_providedAssemblyWithMixedNamesShouldFail() { sut.Configure(Naming.LowerCase); sut.WatchAssembly(typeof(Gmtl.CodeWatch.TestData.MixedPropertyNames.Class1).Assembly); Assert.Throws <CodeWatchException>(() => sut.Execute()); }
public void AllPropertiesInAssemblyMustStartWithUppercase() { PropertyNamingWatcher propertyNamingWatcher = new PropertyNamingWatcher(); propertyNamingWatcher.Configure(Naming.UpperCase); propertyNamingWatcher.WatchAssembly(typeof(DomainModel).Assembly); propertyNamingWatcher.Execute(); }