public void FieldNamingWatcherUpperCaseCheck_providedClassShouldPassWithAllUppercaseFields(Type type)
        {
            sut.Configure(Naming.UpperCase);
            sut.WatchType(type);

            sut.Execute();

            Assert.That(sut.Issues.Count, Is.EqualTo(0));
        }
示例#2
0
        public void FieldNamingWatcherLowerCaseCheck_providedClassWithUpperCasePropertiesToBeSkippedAndLowerCaseToBeWatchedShoudlPass()
        {
            sut.Configure(Naming.LowerCase);
            sut.WatchType(typeof(FieldNamingPublicLowercase));
            sut.SkipType(typeof(FieldNamingPublicUppercase));

            sut.Execute();

            Assert.That(sut.Issues.Count, Is.EqualTo(0));
        }