public void can_evaluate_6() { auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 5, 6, 7) { SID = 7 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[2], Is.EqualTo(1)); Assert.That(protocol.Hits[4], Is.EqualTo(6)); }
public void can_evaluate_4() { auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 7, 8, 9) { SID = 7 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[6], Is.EqualTo(3)); Assert.That(protocol.Hits[8], Is.EqualTo(4)); }
public void can_evaluate_6_ZZ() { // ausspielung =: Superzahl == 0 !!! auftrag = new Auftrag(new Normalschein( new Normalfeld( 1, 2, 3, 4, 5, 6)) { Losnummer = "0000000" }); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[1], Is.EqualTo(1)); }
public void can_evaluate_4() { auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 8, 9, 10, 11, 12, 13) { SID = 10 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[6], Is.EqualTo(15)); Assert.That(protocol.Hits[8], Is.EqualTo(80)); }
public void can_evaluate_5() { auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 5, 9, 10, 11, 12) { SID = 9 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[4], Is.EqualTo(4)); Assert.That(protocol.Hits[6], Is.EqualTo(30)); Assert.That(protocol.Hits[8], Is.EqualTo(40)); }
public void can_evaluate_3_ZZ() { // ausspielung =: Zusatzzahl == 49 !!! auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 7, 8, 9, 10, 11, 12, 49) { SID = 10 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[7], Is.EqualTo(15)); Assert.That(protocol.Hits[8], Is.EqualTo(20)); }
public void can_evaluate_5_ZZ() { // ausspielung =: Zusatzzahl == 49 !!! auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 5, 7, 49) { SID = 7 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[3], Is.EqualTo(1)); Assert.That(protocol.Hits[4], Is.EqualTo(1)); Assert.That(protocol.Hits[5], Is.EqualTo(5)); }
public void can_evaluate_4_ZZ() { // ausspielung =: Zusatzzahl == 49 !!! auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 7, 8, 9, 49) { SID = 8 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[5], Is.EqualTo(3)); Assert.That(protocol.Hits[6], Is.EqualTo(3)); Assert.That(protocol.Hits[7], Is.EqualTo(12)); Assert.That(protocol.Hits[8], Is.EqualTo(4)); }
public void can_evaluate_4_ZZ() { // ausspielung =: Zusatzzahl == 49 !!! auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 49) { SID = 12 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[5], Is.EqualTo(7)); Assert.That(protocol.Hits[6], Is.EqualTo(21)); Assert.That(protocol.Hits[7], Is.EqualTo(84)); Assert.That(protocol.Hits[8], Is.EqualTo(140)); }
public override IProtocol evaluate(IAuftrag auftrag, IAusspielung ausspielung) { bool zusatzzahl = Tippzahlen.Contains(ausspielung.Zusatzzahl); switch (ausspielung.Gewinnzahlen.Intersect(Tippzahlen).Count()) { case 6: if (ausspielung.Superzahl == auftrag.Superzahl) return zusatzzahl ? Protocols._013_6_ZZ_SZ : Protocols._013_6_SZ; return zusatzzahl ? Protocols._013_6_ZZ : Protocols._013_6; case 5: return zusatzzahl ? Protocols._013_5_ZZ : Protocols._013_5; case 4: return zusatzzahl ? Protocols._013_4_ZZ : Protocols._013_4; case 3: return zusatzzahl ? Protocols._013_3_ZZ : Protocols._013_3; } return new LottoProtocol(new Dictionary<int, int>(0)); }
public override IProtocol evaluate(IAuftrag auftrag, IAusspielung ausspielung) { int i; switch (ausspielung.Gewinnzahlen.Intersect(Tippzahlen).Count()) { case 6: i = ausspielung.Superzahl == auftrag.Superzahl ? 1 : 2; break; case 5: i = Tippzahlen.Contains(ausspielung.Zusatzzahl) ? 3 : 4; break; case 4: i = Tippzahlen.Contains(ausspielung.Zusatzzahl) ? 5 : 6; break; case 3: i = Tippzahlen.Contains(ausspielung.Zusatzzahl) ? 7 : 8; break; default: return new LottoProtocol(new Dictionary<int, int>(0)); } return new LottoProtocol(new Dictionary<int, int> { { i, 1 } }); }
public override IProtocol evaluate(IAuftrag auftrag, IAusspielung ausspielung) { throw new NotImplementedException(); }
public void can_evaluate_6() { auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 14) { SID = 11 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[2], Is.EqualTo(1)); Assert.That(protocol.Hits[4], Is.EqualTo(30)); Assert.That(protocol.Hits[6], Is.EqualTo(150)); Assert.That(protocol.Hits[8], Is.EqualTo(200)); }
public void can_evaluate_6_SZ() { // ausspielung =: Superzahl == 0 !!! auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) { SID = 10 }) { Losnummer = "0000000" }); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[1], Is.EqualTo(1)); Assert.That(protocol.Hits[4], Is.EqualTo(24)); Assert.That(protocol.Hits[6], Is.EqualTo(90)); Assert.That(protocol.Hits[8], Is.EqualTo(80)); }
public void can_evaluate_6() { auftrag = new Auftrag(new Normalschein( new Normalfeld( 1, 2, 3, 4, 5, 6))); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[2], Is.EqualTo(1)); }
public void can_evaluate_6_ZZ() { // ausspielung =: Zusatzzahl == 49 !!! auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 5, 6, 10, 11, 12, 49) { SID = 10 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[2], Is.EqualTo(1)); Assert.That(protocol.Hits[3], Is.EqualTo(6)); Assert.That(protocol.Hits[4], Is.EqualTo(18)); Assert.That(protocol.Hits[5], Is.EqualTo(45)); Assert.That(protocol.Hits[6], Is.EqualTo(45)); Assert.That(protocol.Hits[7], Is.EqualTo(60)); Assert.That(protocol.Hits[8], Is.EqualTo(20)); }
public void can_evaluate_6_SZ_ZZ() { // ausspielung =: Zusatzzahl == 49 && Superzahl == 0 !!! auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 4, 5, 6, 7, 8, 9, 49) { SID = 10 }) { Losnummer = "0000000" }); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[1], Is.EqualTo(1)); Assert.That(protocol.Hits[3], Is.EqualTo(6)); Assert.That(protocol.Hits[4], Is.EqualTo(18)); Assert.That(protocol.Hits[5], Is.EqualTo(45)); Assert.That(protocol.Hits[6], Is.EqualTo(45)); Assert.That(protocol.Hits[7], Is.EqualTo(60)); Assert.That(protocol.Hits[8], Is.EqualTo(20)); }
public abstract IProtocol evaluate(IAuftrag auftrag, IAusspielung ausspielung);
public void can_evaluate_3() { auftrag = new Auftrag(new Systemschein( new Systemfeld( 1, 2, 3, 7, 8, 9, 10, 11) { SID = 8 })); protocol = auftrag.Tipps[0].evaluate(ausspielung); Assert.That(protocol.Hits[8], Is.EqualTo(10)); }