예제 #1
0
 public void ClearBoardTest()
 {
     var session = FakeContext.FakeHttpContext(
         new Dictionary<string, object> {
             { "boardStatus", 3 },
             { "boardMoves", new List<int> { 0, 1, 0, 0, 2, 0, 0, 2, 0} }
         }, "http://localhost:65516/api/").Session;
     BoardService servise = new BoardService(session);
     servise.ClearBoard();
     Assert.IsNull(session["boardMoves"]);
     Assert.IsNull(session["boardStatus"]);
 }