public void BindingSourceValueProvider_ReturnsSelf_WithMatchingSource() { // Arrange var valueProvider = new TestableBindingSourceValueProvider(BindingSource.Query); // Act var result = valueProvider.Filter(BindingSource.Query); // Assert Assert.Same(valueProvider, result); }
public void BindingSourceValueProvider_ReturnsNull_WithNonMatchingSource() { // Arrange var valueProvider = new TestableBindingSourceValueProvider(BindingSource.Query); // Act var result = valueProvider.Filter(BindingSource.Body); // Assert Assert.Null(result); }