C# Class MixinRefactoring.Test.ValidationHelpers

Mostra file Open project: pgenfer/mixinSharp

Public Methods

Method Description
HasSameDocumentation ( Microsoft.CodeAnalysis.SyntaxNode classDeclaration, MixinReference mixin ) : bool

checks if the documentation from the class member is the same as the one from the mixin member. This only works if both have only one member

IsPropertyBetweenRegion ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration, string regionName, string propertyName ) : bool

checks if a property with the given name is enclosed by a region with the given name

Method Details

HasSameDocumentation() public static method

checks if the documentation from the class member is the same as the one from the mixin member. This only works if both have only one member
public static HasSameDocumentation ( Microsoft.CodeAnalysis.SyntaxNode classDeclaration, MixinReference mixin ) : bool
classDeclaration Microsoft.CodeAnalysis.SyntaxNode
mixin MixinReference
return bool

IsPropertyBetweenRegion() public static method

checks if a property with the given name is enclosed by a region with the given name
public static IsPropertyBetweenRegion ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration, string regionName, string propertyName ) : bool
classDeclaration Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
regionName string
propertyName string
return bool