public void GetMethodsToExecute_ShouldReturnEmptyCollection_WhenGetMethodBindingAttributesReturnsNull() { var mock = new TestAutoProcessor(); mock.GetFlags = () => null; mock.GetMethodsToExecute().Should().BeEmpty(); }
public void GetMethodsToExecute_ShouldReturnNonEmptyCollection_WhenDescendantClassContainsImplementations() { TestAutoProcessor processor = new TestAutoProcessor(); processor.GetMethodsToExecute().Should().NotBeEmpty().And.Contain(x => x.Name == nameof(TestAutoProcessor.EmptyMethod)); }