public void CreateTest_ShouldThrowInvalidCustExp_When_NoISequenceObject() { var sequence = new SequenceGenerator(null); Assert.Throws <InvalidCastException>(() => sequence.Create()); }
public void Create_ShouldReturnISequence() { var quadraticSequence = new Mock <ISequence>(); SequenceGenerator sequence = new SequenceGenerator(quadraticSequence.Object); var actual = sequence.Create(); Assert.IsAssignableFrom <IEnumerable <int> >(actual); }