Exemplo n.º 1
0
 public Kast(params int[] øyne)
 {
     Terninger = new Terning[øyne.Length];
     for (int i = 0; i < øyne.Length; i++)
     {
         Terninger[i] = new Terning(øyne[i]);
     }
 }
Exemplo n.º 2
0
        public void Terning_TarVarePåVerdi()
        {
            var t1 = new Terning(1);
            Assert.AreEqual(1, t1.AntallØyne);

            var t3 = new Terning(3);
            Assert.AreEqual(3, t3.AntallØyne);
        }
Exemplo n.º 3
0
Arquivo: Kast.cs Projeto: mesan/yatzy
 public Kast(params int[] øyne)
 {
     Terninger = new Terning[øyne.Length];
     for (int i = 0; i < øyne.Length; i++)
         Terninger[i] = new Terning(øyne[i]);
 }
Exemplo n.º 4
0
Arquivo: Kast.cs Projeto: mesan/yatzy
 public Kast()
 {
     Terninger = new Terning[5];
     TrillTerninger();
 }