public void KesesRendesenHozzaad() { j.UjJarat("22", "Budapest", "Helsinki", new DateTime(1995, 01, 21, 17, 15, 45)); j.Keses("22", 15); DateTime indulas = new DateTime(1995, 01, 21, 17, 30, 45); Assert.AreEqual(indulas, j.MikorIndul("22")); }
public void UjJarat() { JaratKezelo j = new JaratKezelo(); j.UjJarat("azon123", "Ferihegy", "Alicantei", new DateTime(2021, 2, 3, 16, 5, 7, 00)); Assert.AreEqual((2021 - 2 - 3 - 16 - 5 - 7 - 00), j.MikorIndul("azon123")); }
public void MikorIndulHibasBemmenet() { JaratKezelo jaratKezelo = new JaratKezelo(); jaratKezelo.UjJarat("5365", "BUD", "ABA", new DateTime(2021, 03, 03, 20, 13, 00)); Assert.Throws <ArgumentException>(() => jaratKezelo.MikorIndul("0000")); }
public void ujJaratSikeres() { JaratKezelo jaratKezelo = new JaratKezelo(); jaratKezelo.UjJarat("1234", "BUD", "ABA", new DateTime(2021, 03, 03, 20, 13, 00)); Assert.AreEqual(new DateTime(2021, 03, 03, 20, 13, 00), jaratKezelo.MikorIndul("1234")); }
public void KesesFelvesz() { JaratKezelo j = new JaratKezelo(); j.UjJarat("azon123", "Ferihegy", "Alicantei", new DateTime(2021, 2, 3, 16, 5, 7, 00)); j.Keses("azon123", 10); Assert.AreEqual(10, j.MikorIndul("azon123")); }
public void KesesSikeres() { JaratKezelo jaratKezelo = new JaratKezelo(); jaratKezelo.UjJarat("5365", "BUD", "ABA", new DateTime(2021, 03, 03, 20, 00, 00)); jaratKezelo.Keses("5365", 40); Assert.AreEqual(new DateTime(2021, 03, 03, 20, 40, 00), jaratKezelo.MikorIndul("5365")); }
public void MikorIndulRosszJáratszám() { j.UjJarat("tesztJaratSzam", "repter1", "repter2", time); Assert.Throws <ArgumentException>( () => { j.MikorIndul("tesztJaratSzam2"); } ); }
public void MikorIndulTeszt() { j.UjJarat("111", "Budapest", "London", new DateTime(2021, 5, 25, 15, 0, 0)); j.UjJarat("222", "Bukarest", "Moszkva", new DateTime(2021, 5, 25, 12, 0, 0)); j.UjJarat("333", "Kecskemét", "Miami", new DateTime(2021, 7, 25, 12, 0, 0)); j.Keses("111", 5); j.Keses("222", 15); j.Keses("333", 50); j.MikorIndul("111"); j.MikorIndul("222"); j.MikorIndul("333"); Assert.AreEqual(new DateTime(2021, 5, 25, 15, 5, 0), j.MikorIndul("111")); Assert.AreEqual(new DateTime(2021, 5, 25, 12, 15, 0), j.MikorIndul("222")); Assert.AreEqual(new DateTime(2021, 7, 25, 12, 50, 0), j.MikorIndul("333")); }
public void KesesTobbTest() { jaratKezelo.UjJarat("87", "BudaPest", "Berlin", new DateTime(2021, 2, 5, 19, 10, 20)); jaratKezelo.Keses("87", 15); jaratKezelo.Keses("87", 30); Assert.AreEqual(new DateTime(2021, 2, 5, 19, 55, 20), jaratKezelo.MikorIndul("87")); jaratKezelo.UjJarat("120", "London", "Parizs", new DateTime(2021, 2, 5, 13, 8, 10)); jaratKezelo.Keses("120", 10); jaratKezelo.Keses("120", 30); Assert.AreEqual(new DateTime(2021, 2, 5, 13, 48, 10), jaratKezelo.MikorIndul("120")); jaratKezelo.UjJarat("22", "Kecskemét", "Madrid", new DateTime(2021, 2, 5, 13, 8, 10)); jaratKezelo.Keses("22", 10); jaratKezelo.Keses("22", 30); Assert.AreEqual(new DateTime(2021, 2, 5, 13, 48, 10), jaratKezelo.MikorIndul("22")); }
public void Mikorindul() { jk.MikorIndul("hfm300"); }
public void NemLetezoInduloJarat() { Assert.Throws <ArgumentOutOfRangeException>(() => j.MikorIndul("LH1338")); }
public void JaratHozzaad() { j.UjJarat("TesztNev", "Hamburg", "Bucharest", new DateTime(2019, 03, 01, 12, 50, 0)); Assert.AreEqual(new DateTime(2019, 03, 01, 12, 50, 0), j.MikorIndul("TesztNev")); }
public void MikorIndulTest() { j.ujJarat("222", "Tajgetosz", "Athén", new DateTime(2019, 12, 06, 12, 30, 30)); Assert.AreEqual(new DateTime(2019, 12, 06, 12, 30, 30), j.MikorIndul("222")); }