public void EffectorsTestMethod1()
        {
            TestCardRecord  test    = new TestCardRecord();
            GameCardManager manager = new GameCardManager();

            Assert.IsTrue(test.Effectors(manager).Count() == 0, "Effectors count mismatch (should be 0): " + test.Effectors(manager).Count());

            Assert.IsNotNull(manager.CreareEffector(new TestEffect(1)));
            test.AddEffector(1);
            Assert.IsTrue(test.Effectors(manager).Count() == 1, "Effectors count mismatch (should be 1): " + test.Effectors(manager).Count());

            test.AddEffector(2);
            Assert.IsTrue(test.Effectors(manager).Count() == 1, "Effectors count mismatch (should be 1): " + test.Effectors(manager).Count());

            Assert.IsNotNull(manager.CreareEffector(new TestEffect(2)));
            Assert.IsTrue(test.Effectors(manager).Count() == 2, "Effectors count mismatch (should be 2): " + test.Effectors(manager).Count());
        }
Beispiel #2
0
        public void IncreaseCoverageTestMethod2()
        {
            GameCardManager gameCardManager = new GameCardManager();

            Assert.IsNull(gameCardManager.CreareEffector(new TestEffect(1)));
        }