コード例 #1
0
        public void FieldNamingWatcherUpperCaseCheck_providedClassShouldPassWithAllUppercaseFields(Type type)
        {
            sut.Configure(Naming.UpperCase);
            sut.WatchType(type);

            sut.Execute();
        }
コード例 #2
0
        public void AllPropertiesInAssemblyMustStartWithUppercase()
        {
            FieldNamingWatcher fieldNamingWatcher = new FieldNamingWatcher();

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

            fieldNamingWatcher.Execute();
        }