public void TestConversion(FieldProbeResult spaceState, GameSpaceState expectedGameSpaceState) { var convertor = new SpaceStateConvertor(); var result = convertor.Convert(spaceState); Assert.AreEqual(expectedGameSpaceState, result); }
public GameSpaceState Convert(FieldProbeResult spaceState) { return((GameSpaceState)spaceState); }
public void TestProbeResult(Field field, int x, int y, FieldProbeResult expectedResult) { var result = _probe.Probe(field, x, y); Assert.AreEqual(expectedResult, result); }
public void TestBackToIntConversion(int expectedInt, FieldProbeResult state) { Assert.AreEqual(expectedInt, (int)state); }
public void TestIntConversion(int intValue, FieldProbeResult expectedState) { Assert.AreEqual(expectedState, (FieldProbeResult)intValue); }