Exemplo n.º 1
0
        public void ReturnsZeroForNonICanActivateDerivatives()
        {
            var canActivateViewFetcher = new CanActivateViewFetcher();
            var affinity = canActivateViewFetcher.GetAffinityForView(typeof(CanActivateViewFetcherTests));

            Assert.Equal(0, affinity);
        }
Exemplo n.º 2
0
        public void ReturnsPositiveForICanActivateDerivatives()
        {
            var canActivateViewFetcher = new CanActivateViewFetcher();
            var affinity = canActivateViewFetcher.GetAffinityForView(typeof(CanActivateStub));

            Assert.True(affinity > 0);
        }