Class InterfaceStubGeneratorTests
Tests for Serenity.Global.Infrastructure.Editor.Migration.Core.InterfaceStubGenerator: multi-interface base lists, partial classes (cross-file member lookup), no duplicate stubs for already-implemented members, marker text, throwing void members, property members (fixed expression body, no TODO marker), mixed method+property member lists, and using injection.
Inherited Members
Namespace: Serenity.Migration.Tests.Editor
Assembly: Serenity.Migration.Tests.Editor.dll
Syntax
public class InterfaceStubGeneratorTests
Constructors
InterfaceStubGeneratorTests()
Declaration
public InterfaceStubGeneratorTests()
Methods
AlreadyImplementedMember_IsNotDuplicated()
Declaration
public void AlreadyImplementedMember_IsNotDuplicated()
ClassClosingBrace_KeepsIndentation()
Declaration
public void ClassClosingBrace_KeepsIndentation()
FullyImplemented_IsNoMatch()
Declaration
public void FullyImplemented_IsNoMatch()
GeneratedStubs_AreIdempotent()
Declaration
public void GeneratedStubs_AreIdempotent()
GeneratesStub_WithMarker_AndThrowingVoidBody()
Declaration
public void GeneratesStub_WithMarker_AndThrowingVoidBody()
MixedMethodAndPropertyMembers_BothStubbed_OnlyMethodGetsTodoMarker()
Declaration
public void MixedMethodAndPropertyMembers_BothStubbed_OnlyMethodGetsTodoMarker()
MultiInterfaceBaseList_IsRecognized()
Declaration
public void MultiInterfaceBaseList_IsRecognized()
NonImplementingClass_IsNoMatch()
Declaration
public void NonImplementingClass_IsNoMatch()
PartialClass_MemberInOtherFile_IsNotStubbed()
Declaration
public void PartialClass_MemberInOtherFile_IsNotStubbed()
PartialClass_MemberNowhere_IsStubbed()
Declaration
public void PartialClass_MemberNowhere_IsStubbed()
PropertyMember_AutoPropertyShape_IsAlreadyImplemented()
Declaration
public void PropertyMember_AutoPropertyShape_IsAlreadyImplemented()
PropertyMember_ExplicitInterfaceImplementation_IsAlreadyImplemented()
Declaration
public void PropertyMember_ExplicitInterfaceImplementation_IsAlreadyImplemented()
PropertyMember_ExpressionBodyShape_IsAlreadyImplemented()
Declaration
public void PropertyMember_ExpressionBodyShape_IsAlreadyImplemented()
PropertyMember_GeneratedStub_IsIdempotent()
Declaration
public void PropertyMember_GeneratedStub_IsIdempotent()
PropertyMember_GeneratesNullExpressionBody_WithNoTodoMarker()
Declaration
public void PropertyMember_GeneratesNullExpressionBody_WithNoTodoMarker()
RequiredUsings_AreInjected_Once()
Declaration
public void RequiredUsings_AreInjected_Once()