MonoGame/MonoGame

Add Unit Tests for Effect Classes

Open

#4,698 创建于 2016年4月1日

在 GitHub 查看
 (12 评论) (0 反应) (0 负责人)C# (13,886 star) (3,071 fork)batch import
Help WantedTesting

描述

Looking at the code coverage I see 0% coverage for the following Effect classes:

  • AlphaTestEffect
  • SpriteEffect
  • SkinnedEffect
  • DualTextureEffect
  • EnvironmentMapEffect

We should also write a complete BasicEffect test which exercises all the different states... it currently sits at 39.4% code coverage because it is used as part of other tests.

For console work I did a test like this for BasicEffect:

https://gist.github.com/tomspilman/c820c192bc62901e9a288ef905eccfde

That resulted in the following screen:

tom s dev kit-20160401-0040

We need tests similar to this for all the built in effect types.

贡献者指南

Add Unit Tests for Effect Classes · MonoGame/MonoGame#4698 | Good First Issue