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()); }
public Form1() { InitializeComponent(); yahtzee = new Yahtzee(); }
public void Init() { ya = new Yahtzee(); py = new PrivateObject(ya); }