public void TestMethod1() { PerformanceCounter c = new PerformanceCounter(); c.Start(); GoLayout layout = new GoLayout(); bool isBlack = false; for (int i = 0; i < GoLayout.SIZE; i++) { for (int j = 0; j < GoLayout.SIZE; j++) { if (isBlack) { layout.SetupPoint(new GoCoord(i, j), GoPointType.BLACK); } else { layout.SetupPoint(new GoCoord(i, j), GoPointType.WHITE); } isBlack = !isBlack; } } double timestamp1 = c.Count(); for (int i = 0; i < GoLayout.SIZE; i++) { for (int j = 0; j < GoLayout.SIZE; j++) { layout.SetupPoint(new GoCoord(i, j), GoPointType.EMPTY); } } double timestamp2 = c.Count(); int a = 0; }
public void SetDianAndCheckQi(GoLayout layout, int row, int col, GoPointType type, int qi) { layout.SetupPoint(new GoCoord(row, col), type); Assert.AreEqual(qi, layout.GetQi(row, col)); }
public void SetDian(GoLayout layout, int row, int col, GoPointType type) { layout.SetupPoint(new GoCoord(row, col), type); }