Esempio n. 1
0
        public void PropertyNamingWatcherLowerCaseCheck_providedAssemblyWithMixedNamesShouldFail()
        {
            sut.Configure(Naming.LowerCase);
            sut.WatchAssembly(typeof(Gmtl.CodeWatch.TestData.MixedPropertyNames.Class1).Assembly);

            Assert.Throws <CodeWatchException>(() => sut.Execute());
        }
Esempio n. 2
0
        public void AllPropertiesInAssemblyMustStartWithUppercase()
        {
            PropertyNamingWatcher propertyNamingWatcher = new PropertyNamingWatcher();

            propertyNamingWatcher.Configure(Naming.UpperCase);
            propertyNamingWatcher.WatchAssembly(typeof(DomainModel).Assembly);

            propertyNamingWatcher.Execute();
        }