Beispiel #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]);
     }
 }
Beispiel #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);
        }
Beispiel #3
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]);
 }
Beispiel #4
0
 public Kast()
 {
     Terninger = new Terning[5];
     TrillTerninger();
 }