public async Task WalkWhenContainingTypeIsBusinessBaseAndInvocationIsLoadPropertyMarkDirty() { var walker = await FindSetOrLoadInvocationsWalkerTests.GetWalker( $@"Targets\{nameof(FindSetOrLoadInvocationsWalkerTests)}\{(nameof(this.WalkWhenContainingTypeIsBusinessBaseAndInvocationIsLoadPropertyMarkDirty))}.cs"); Assert.IsNotNull(walker.Invocation); }
public async Task WalkWhenContainingTypeIsNotBusinessBase() { var code = @"namespace Csla.Analyzers.Tests.Targets.FindSetOrLoadInvocationsWalker { public class WalkWhenContainingTypeIsNotBusinessBase { } }"; var walker = await FindSetOrLoadInvocationsWalkerTests.GetWalker(code); Assert.IsNull(walker.Invocation); }
public async Task WalkWhenContainingTypeIsBusinessBaseAndInvocationIsLoadProperty() { var code = @"namespace Csla.Analyzers.Tests.Targets.FindSetOrLoadInvocationsWalkerTests { public class WalkWhenContainingTypeIsBusinessBaseAndInvocationIsLoadProperty : BusinessBase<WalkWhenContainingTypeIsBusinessBaseAndInvocationIsLoadProperty> { public void Go() { this.LoadProperty(null, null); } } }"; var walker = await FindSetOrLoadInvocationsWalkerTests.GetWalker(code); Assert.IsNotNull(walker.Invocation); }