Ejemplo n.º 1
0
        public void CreateTest_ShouldThrowInvalidCustExp_When_NoISequenceObject()
        {
            var sequence = new SequenceGenerator(null);

            Assert.Throws <InvalidCastException>(()
                                                 => sequence.Create());
        }
Ejemplo n.º 2
0
        public void Create_ShouldReturnISequence()
        {
            var quadraticSequence      = new Mock <ISequence>();
            SequenceGenerator sequence = new SequenceGenerator(quadraticSequence.Object);

            var actual = sequence.Create();

            Assert.IsAssignableFrom <IEnumerable <int> >(actual);
        }