public void ShouldPrintFirstNumber()
 {
     NaturalNumbers nats = new NaturalNumbers();
     int expected = 1;
     int actual = nats.GetFirst();
     Assert.AreEqual(expected, actual);
 }
 public void ShouldProvideSameOutputSequences()
 {
     NaturalNumbers nats = new NaturalNumbers();
     int input = 10;
     int[] sequencewithlength = nats.GetSequence(input);
     int[] sequencenolength = nats.GetSequence();
     CollectionAssert.AreEqual(sequencenolength, sequencewithlength);
 }
 public void ShouldPrintVariableSequenceOfNumbers()
 {
     NaturalNumbers nats = new NaturalNumbers();
     int input = 8;
     int[] expected = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 };
     int[] actual = nats.GetSequence(input);
     CollectionAssert.AreEqual(expected, actual);
 }
 public void ShouldPrintNextNumberInput3()
 {
     NaturalNumbers nats = new NaturalNumbers();
     int input = 3;
     int expected = 4;
     int actual = nats.GetNext(input);
     Assert.AreEqual(expected, actual);
 }
 public void PrintSequenceOfNumbers()
 {
     NaturalNumbers nats = new NaturalNumbers();
     int length = 7;
     string expected = "1 2 3 4 5 6 7";
     string actual = nats.ToString(nats.GetSequence(length));
     Assert.AreEqual(expected, actual);
 }
 public void EnsureICanCreateClassInstance()
 {
     NaturalNumbers nats = new NaturalNumbers();
     Assert.IsNotNull(nats);
 }