Ejemplo n.º 1
0
        public void PrivateGenerateShapeTest(int inLevel, int randResult, Type type)
        {
            PrivateType wrapper = new PrivateType(typeof(ShapeGenerator));
            GameShape   result  = (GameShape)wrapper.InvokeStatic("PrivateGenerateShape", inLevel, randResult);

            Assert.IsTrue(result.GetType() == type);
        }