コード例 #1
0
        public void TestConversion(FieldProbeResult spaceState, GameSpaceState expectedGameSpaceState)
        {
            var convertor = new SpaceStateConvertor();

            var result = convertor.Convert(spaceState);

            Assert.AreEqual(expectedGameSpaceState, result);
        }
コード例 #2
0
 public GameSpaceState Convert(FieldProbeResult spaceState)
 {
     return((GameSpaceState)spaceState);
 }
コード例 #3
0
        public void TestProbeResult(Field field, int x, int y, FieldProbeResult expectedResult)
        {
            var result = _probe.Probe(field, x, y);

            Assert.AreEqual(expectedResult, result);
        }
コード例 #4
0
 public void TestBackToIntConversion(int expectedInt, FieldProbeResult state)
 {
     Assert.AreEqual(expectedInt, (int)state);
 }
コード例 #5
0
 public void TestIntConversion(int intValue, FieldProbeResult expectedState)
 {
     Assert.AreEqual(expectedState, (FieldProbeResult)intValue);
 }