public void Zwei_leere_Listen_ergeben_leere_Liste() { var sut = new ListenConcatenieren(); var result = sut.Concatenate(new int[] { }, new int[] { }); Assert.AreEqual(result.Length, 0); }
public void Zwei_identische_Listen_ergebnen_eine_Vollständige() { var sut = new ListenConcatenieren(); var result = sut.Concatenate(new int[] { 3, 4 }, new int[] { 3, 4 }); Assert.AreEqual(result.Length, 4); Assert.AreEqual(result[0], 3); Assert.AreEqual(result[3], 4); }
public void Zwei_identische_kurze_listen_ergeben_eine() { var sut = new ListenConcatenieren(); var result = sut.Concatenate(new int[] { 0 }, new int[] { 0 }); Assert.AreEqual(result.Length, 2); Assert.AreEqual(result[0], 0); Assert.AreEqual(result[1], 0); }
public void Zweite_Liste_leer_ergibt_erste_Liste() { var sut = new ListenConcatenieren(); var result = sut.Concatenate(new int[] { 4, 8 }, new int[] { }); Assert.AreEqual(result.Length, 2); Assert.AreEqual(result[0], 4); Assert.AreEqual(result[1], 8); }