Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.google.code.goproject.test;
- import static org.junit.Assert.*;
- import org.junit.Before;
- import org.junit.Test;
- import com.google.code.goproject.model.GoBoard;
- public class GoBoardTest {
- GoBoard k;
- @Before
- public void setUp() throws Exception {
- k= new GoBoard(9, 600, 600);
- }
- @Test
- public void testGoBoard() {
- boolean expected = true;
- boolean actual = k.dots[0][1].getX() == (600 - k.dots[0][0].getX());
- assertEquals(expected, actual);
- }
- }
Add Comment
Please, Sign In to add comment