public void TestSegmentNoArgConstruct() { GameMapSegment gms = new GameMapSegment(); long[] expectedResult = expectedLongArray; CollectionAssert.AreEqual(expectedResult, gms.Contents); }
public void TestSegmentBaseConstruct() { GameMapSegment gms = new GameMapSegment(new Microsoft.Xna.Framework.Vector2(1, 1)); long expectedResult = -1; foreach (long l in gms.Contents) Assert.AreEqual(expectedResult, l); }
public void TestConstructGameBlockDepth() { GameMapFactory gmf = new GameMapFactory(); GameMapBlock<IGameMapBlock> gmb = gmf.ConstructGameBlock(1, 1, 0); GameMapSegment expectedSegment = new GameMapSegment(); foreach (GameMapSegment curGms in gmb.Contents) CollectionAssert.AreEqual(expectedSegment.Contents, curGms.Contents); }