public void ReturnsZeroForNonICanActivateDerivatives() { var canActivateViewFetcher = new CanActivateViewFetcher(); var affinity = canActivateViewFetcher.GetAffinityForView(typeof(CanActivateViewFetcherTests)); Assert.Equal(0, affinity); }
public void ReturnsPositiveForICanActivateDerivatives() { var canActivateViewFetcher = new CanActivateViewFetcher(); var affinity = canActivateViewFetcher.GetAffinityForView(typeof(CanActivateStub)); Assert.True(affinity > 0); }