public void setUp() { /* var ci = typeof(StatisticsHolder).GetConstructor( BindingFlags.NonPublic | BindingFlags.Instance, null, System.Type.EmptyTypes, null); statisticsHolder = (StatisticsHolder)ci.Invoke(System.Type.EmptyTypes);*/ statisticsHolder = new StatisticsHolder(); }
public void LoadData() { FileIO.CreateIfNotExists(r_AppDirectory); var statistics = (StatisticsHolder)FileIO.ReadObjectFrom(k_StatisticsFileName); if (statistics != null) { Statistics = statistics; } var options = (GameOptions)FileIO.ReadObjectFrom(k_OptionsFileName); if (options != null) { OthelloOptions = options; } }
private OthelloData() { Statistics = new StatisticsHolder(); OthelloOptions = new GameOptions(); }