Esempio n. 1
0
        public void NonGenericEnumeratorMatchesGenericEnumerator()
        {
            // Arrange
            var sut = new DefaultRelays();
            // Act
            IEnumerable result = sut;

            // Assert
            Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast <object>().Select(o => o.GetType())));
        }
Esempio n. 2
0
 public void NonGenericEnumeratorMatchesGenericEnumerator()
 {
     // Fixture setup
     var sut = new DefaultRelays();
     // Exercise system
     IEnumerable result = sut;
     // Verify outcome
     Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast<object>().Select(o => o.GetType())));
     // Teardown
 }
Esempio n. 3
0
        public void NonGenericEnumeratorMatchesGenericEnumerator()
        {
            // Fixture setup
            var sut = new DefaultRelays();
            // Exercise system
            IEnumerable result = sut;

            // Verify outcome
            Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast <object>().Select(o => o.GetType())));
            // Teardown
        }
Esempio n. 4
0
        public void SutHasCorrectContents()
        {
            // Fixture setup
            var expectedBuilderTypes = new[]
            {
                typeof(ArrayRelay),
                typeof(ParameterRequestRelay),
                typeof(PropertyRequestRelay),
                typeof(FieldRequestRelay),
                typeof(FiniteSequenceRelay),
                typeof(SeedIgnoringRelay),
                typeof(MethodInvoker)
            };
            // Exercise system
            var sut = new DefaultRelays();

            // Verify outcome
            Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType())));
            // Teardown
        }
Esempio n. 5
0
 public void SutHasCorrectContents()
 {
     // Fixture setup
     var expectedBuilderTypes = new[]
     {   
         typeof(MultidimensionalArrayRelay),
         typeof(ArrayRelay),
         typeof(ParameterRequestRelay),
         typeof(PropertyRequestRelay),
         typeof(FieldRequestRelay),
         typeof(FiniteSequenceRelay),
         typeof(SeedIgnoringRelay),
         typeof(MethodInvoker)
     };
     // Exercise system
     var sut = new DefaultRelays();
     // Verify outcome
     Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType())));
     // Teardown
 }
        public void SutHasCorrectContents()
        {
            // Arrange
            var expectedBuilderTypes = new[]
            {
                typeof(LazyRelay),
                typeof(MultidimensionalArrayRelay),
                typeof(ArrayRelay),
                typeof(ParameterRequestRelay),
                typeof(PropertyRequestRelay),
                typeof(FieldRequestRelay),
                typeof(FiniteSequenceRelay),
                typeof(SeedIgnoringRelay),
                typeof(MethodInvoker)
            };
            // Act
            var sut = new DefaultRelays();

            // Assert
            Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType())));
        }