public void can_archive_valid_Systemschein() { var schein = new Systemschein(new Systemfeld(1, 2, 3, 4, 5, 6, 7) { SID = 7 }); Assert.That(schein.IsValid()); Lotto.CurrentSpiel.Vorlage = schein; sut.archive(); Assert.That(Lotto.CurrentSpiel.Scheine.Count, Is.EqualTo(1)); Assert.That(Lotto.CurrentSpiel.Vorlage is Normalschein); }
public void wont_archive_empty_Schein() { ISchein schein = new Normalschein(); Assert.That(!schein.IsValid()); Lotto.CurrentSpiel.Vorlage = schein; sut.archive(); Assert.That(Lotto.CurrentSpiel.Scheine.Count, Is.EqualTo(0)); schein = new Systemschein(); Assert.That(!schein.IsValid()); Lotto.CurrentSpiel.Vorlage = schein; sut.archive(); Assert.That(Lotto.CurrentSpiel.Scheine.Count, Is.EqualTo(0)); }