public bool CheckStep17() { var node = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager); var parent = PsiNavigationHelper.GetParentOfType <IClassBody>(node); return(parent != null && parent.Properties.Count == 1); }
public bool CheckStep16() { var node = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager); var parent = PsiNavigationHelper.GetParentOfType <IAsExpression>(node); return(parent != null); }
public bool CheckTutorial1Step2832() { var node = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager); var parentNode = node?.Parent as ITypeDeclaration; return(parentNode != null && parentNode.DeclaredName == "CenterCoordinates"); }
public bool CheckStep25() { var node = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager); var parentNode = node?.Parent?.Parent as IPropertyDeclaration; return(parentNode != null && parentNode.DeclaredName == "Third"); }
public bool CheckStep21() { var node = TypicalChecks.GetTreeNodeUnderCaret(DocumentManager, TextControlManager); var parent = PsiNavigationHelper.GetParentOfType <IConstructorDeclaration>(node); return(parent != null && parent.DeclaredName == "WrongUsage"); }
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"); }
public bool CheckStep19() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "LanguageInjections.cs", "javascript")); }
public bool CheckStep9() { return(TypicalChecks.StringExists(Solution, "Tutorial4_WhatsNewReSharper2017.1", "LocalFunctions.cs", "private int")); }
public bool CheckTutorial1Step13() { return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "public int Type")); }
public bool CheckStep11() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "IntroduceFromUnusedParameters.cs", "Unused1 = unused1;")); }
public bool CheckStep15() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "TransformParameters.cs", "ReturnValue")); }
public bool CheckStep3() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CodeGeneration.cs", "Dispose(true)")); }
public bool CheckStep7() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CodeGeneration.cs", "RelationalComparer();")); }
public bool CheckStep15() { return(!TypicalChecks.StringExists(Solution, "Tutorial4_WhatsNewReSharper2017.1", "CodeFormatting.cs", "foo){")); }
public bool CheckStep20() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "LanguageInjections.cs", "postfix=;}")); }
public bool CheckTutorial1Step20() { return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "public CenterCoordinates CenterCoordinates")); }
public bool CheckTutorial1Step26() { return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "MyCircle.cs", "class MyCircle")); }
public bool CheckTutorial1Step23() { return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "protected bool Equals(MyCircle")); }
public bool CheckStep23() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CSharp7.cs", "0b111011_")); }
public bool CheckTutorial1Step34() { return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "ReturnString(int intArg")); }
public bool CheckStep27() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "InterpolatedStringsImprovement.cs", "$\"\"")); }
public bool CheckTutorial1Step4() { return(TypicalChecks.TypeDeclarationExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "Tutorial1_EssentialShortcuts.BadlyNamedClass")); }
public bool CheckStep6() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CodeGeneration.cs", "other._name")); }
public bool CheckTutorial1Step5() { return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "string.Format")); }
public bool CheckStep9() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "CodeGeneration.cs", "ArgumentNullException(")); }
public bool CheckTutorial1Step6() { return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "public class Renamed")); }
public bool CheckStep13() { return(TypicalChecks.StringExists(Solution, "Tutorial3_WhatsNewReSharper2016.3", "IntroducePropertyForLazilyInitialisedField.cs", "_foo.Value")); }
public bool CheckTutorial1Step10() { return(TypicalChecks.TypeDeclarationExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "Tutorial1_EssentialShortcuts.MyCircle")); }
public bool CheckStep17() { return(TypicalChecks.StringExistsInCssFile(Solution, "Tutorial3_WhatsNewReSharper2016.3", "LanguageInjections.cs", 1, "red")); }
public bool CheckTutorial1Step11() { return(TypicalChecks.StringExists(Solution, "Tutorial1_EssentialShortcuts", "Essentials.cs", "public MyCircle()")); }