Exemplo n.º 1
0
        public void RefractReturnsCorrectResult(object[] source)
        {
            var sut = new LocalVariableInfoElementRefraction <object>();

            var actual = sut.Refract(source);

            var expected = source
                           .OfType <LocalVariableInfo>()
                           .Select(m => new LocalVariableInfoElement(m))
                           .Cast <IReflectionElement>();

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void RefractNullSourceThrows()
        {
            var sut = new LocalVariableInfoElementRefraction <object>();

            Assert.Throws <ArgumentNullException>(() => sut.Refract(null));
        }
Exemplo n.º 3
0
        public void SutIsReflectionElementRefraction()
        {
            var sut = new LocalVariableInfoElementRefraction <object>();

            Assert.IsAssignableFrom <IReflectionElementRefraction <object> >(sut);
        }