Beispiel #1
0
 public void TestValueOnePair()
 {
     Yahtzee yahtzee = new Yahtzee();
     PrivateObject priv = new PrivateObject(yahtzee);
     int[] example = new int[5] { 1, 5, 5, 1, 1 };
     priv.SetField("dies", example);
     Assert.AreEqual(10, yahtzee.valueOnePair());
 }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();

            yahtzee = new Yahtzee();
        }
Beispiel #3
-1
 public void Init()
 {
     ya = new Yahtzee();
     py = new PrivateObject(ya);
 }