예제 #1
0
        public bool CheckStep17()
        {
            var node   = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager);
            var parent = PsiNavigationHelper.GetParentOfType <IClassBody>(node);

            return(parent != null && parent.Properties.Count == 1);
        }
예제 #2
0
        public bool CheckStep16()
        {
            var node   = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager);
            var parent = PsiNavigationHelper.GetParentOfType <IAsExpression>(node);

            return(parent != null);
        }
예제 #3
0
        public bool CheckTutorial1Step2832()
        {
            var node       = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager);
            var parentNode = node?.Parent as ITypeDeclaration;

            return(parentNode != null && parentNode.DeclaredName == "CenterCoordinates");
        }
예제 #4
0
        public bool CheckStep25()
        {
            var node       = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager);
            var parentNode = node?.Parent?.Parent as IPropertyDeclaration;

            return(parentNode != null && parentNode.DeclaredName == "Third");
        }
예제 #5
0
        public bool CheckStep21()
        {
            var node   = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager);
            var parent = PsiNavigationHelper.GetParentOfType <IConstructorDeclaration>(node);

            return(parent != null && parent.DeclaredName == "WrongUsage");
        }
예제 #6
0
        public bool CheckTutorial1Step29()
        {
            var node       = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager);
            var parentNode = node?.Parent as IMultipleFieldDeclaration;
            var decl       = parentNode?.Declarators.FirstOrDefault();

            return(parentNode != null && decl?.DeclaredName == "_coordinates");
        }
예제 #7
0
 public bool CheckStep19()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "LanguageInjections.cs",
                                       "javascript"));
 }
예제 #8
0
 public bool CheckStep9()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial4_WhatsNewReSharper2017.1", "LocalFunctions.cs",
                                       "private int"));
 }
예제 #9
0
 public bool CheckTutorial1Step13()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs",
                                       "public int Type"));
 }
예제 #10
0
 public bool CheckStep11()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3",
                                       "IntroduceFromUnusedParameters.cs",
                                       "Unused1 = unused1;"));
 }
예제 #11
0
 public bool CheckStep15()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "TransformParameters.cs",
                                       "ReturnValue"));
 }
예제 #12
0
 public bool CheckStep3()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CodeGeneration.cs",
                                       "Dispose(true)"));
 }
예제 #13
0
 public bool CheckStep7()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CodeGeneration.cs",
                                       "RelationalComparer();"));
 }
예제 #14
0
 public bool CheckStep15()
 {
     return(!TypicalChecks.StringExists(Solution, "Tutorial4_WhatsNewReSharper2017.1", "CodeFormatting.cs",
                                        "foo){"));
 }
예제 #15
0
 public bool CheckStep20()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "LanguageInjections.cs",
                                       "postfix=;}"));
 }
예제 #16
0
 public bool CheckTutorial1Step20()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs",
                                       "public CenterCoordinates CenterCoordinates"));
 }
예제 #17
0
 public bool CheckTutorial1Step26()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "MyCircle.cs",
                                       "class MyCircle"));
 }
예제 #18
0
 public bool CheckTutorial1Step23()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs",
                                       "protected bool Equals(MyCircle"));
 }
예제 #19
0
 public bool CheckStep23()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CSharp7.cs",
                                       "0b111011_"));
 }
예제 #20
0
 public bool CheckTutorial1Step34()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs",
                                       "ReturnString(int intArg"));
 }
예제 #21
0
 public bool CheckStep27()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3",
                                       "InterpolatedStringsImprovement.cs",
                                       "$\"\""));
 }
예제 #22
0
 public bool CheckTutorial1Step4()
 {
     return(TypicalChecks.TypeDeclarationExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs",
                                                "Tutorial1_EssentialShortcuts.BadlyNamedClass"));
 }
예제 #23
0
 public bool CheckStep6()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CodeGeneration.cs",
                                       "other._name"));
 }
예제 #24
0
 public bool CheckTutorial1Step5()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "string.Format"));
 }
예제 #25
0
 public bool CheckStep9()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CodeGeneration.cs",
                                       "ArgumentNullException("));
 }
예제 #26
0
 public bool CheckTutorial1Step6()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "public class Renamed"));
 }
예제 #27
0
 public bool CheckStep13()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3",
                                       "IntroducePropertyForLazilyInitialisedField.cs",
                                       "_foo.Value"));
 }
예제 #28
0
 public bool CheckTutorial1Step10()
 {
     return(TypicalChecks.TypeDeclarationExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs",
                                                "Tutorial1_EssentialShortcuts.MyCircle"));
 }
예제 #29
0
 public bool CheckStep17()
 {
     return(TypicalChecks.StringExistsInCssFile(Solution, "Tutorial3_WhatsNewReSharper2016.3",
                                                "LanguageInjections.cs", 1, "red"));
 }
예제 #30
0
 public bool CheckTutorial1Step11()
 {
     return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs",
                                       "public MyCircle()"));
 }