public void TestSuggestionForPascalCase() { var rule = new NamingRule(AffectedEntity.Class); rule.NamingStyle = NamingStyle.PascalCase; System.Collections.Generic.IList <string> suggestedNames; rule.GetErrorMessage(new TestRefactoringContext(null, TextLocation.Empty, null), "pascalCase_12_____12323", out suggestedNames); Assert.IsTrue(suggestedNames.Contains("PascalCase_12_12323")); }
public void TestSuggestionForPascalCaseWithLowerStart() { var rule = new NamingRule(AffectedEntity.Class); rule.NamingStyle = NamingStyle.PascalCaseWithLowerLetterUnderscore; System.Collections.Generic.IList <string> suggestedNames; rule.GetErrorMessage(new TestRefactoringContext(null, TextLocation.Empty, null), "PascalCase_UnderscoreTolerant", out suggestedNames); Assert.IsTrue(suggestedNames.Contains("PascalCase_underscoreTolerant")); }
public void TestCase70925() { var rule = new NamingRule(AffectedEntity.Field); rule.NamingStyle = NamingStyle.PascalCase; System.Collections.Generic.IList <string> suggestedNames; rule.GetErrorMessage(new TestRefactoringContext(null, TextLocation.Empty, null), "_taskStatus", out suggestedNames); Assert.IsTrue(suggestedNames.Contains("TaskStatus")); }
public void TestCase70925() { var rule = new NamingRule(AffectedEntity.Field); rule.NamingStyle = NamingStyle.PascalCase; System.Collections.Generic.IList<string> suggestedNames; rule.GetErrorMessage(new TestRefactoringContext (null, TextLocation.Empty, null), "_taskStatus", out suggestedNames); Assert.IsTrue(suggestedNames.Contains("TaskStatus")); }
public void TestSuggestionForPascalCase() { var rule = new NamingRule(AffectedEntity.Class); rule.NamingStyle = NamingStyle.PascalCase; System.Collections.Generic.IList<string> suggestedNames; rule.GetErrorMessage(new TestRefactoringContext (null, TextLocation.Empty, null), "pascalCase_12_____12323", out suggestedNames); Assert.IsTrue(suggestedNames.Contains("PascalCase_12_12323")); }
public void TestSuggestionForPascalCaseWithLowerStart() { var rule = new NamingRule(AffectedEntity.Class); rule.NamingStyle = NamingStyle.PascalCaseWithLowerLetterUnderscore; System.Collections.Generic.IList<string> suggestedNames; rule.GetErrorMessage(new TestRefactoringContext (null, TextLocation.Empty, null), "PascalCase_UnderscoreTolerant", out suggestedNames); Assert.IsTrue(suggestedNames.Contains("PascalCase_underscoreTolerant")); }