Beispiel #1
0
        public void GetEffect_ReturnsZero_IfCustomDataDoesNotHaveEffect()
        {
            MockCustomData.HasEffect("Test").Returns(false);

            BoostUnit systemUnderTest = CreateSystem();

            Assert.AreEqual(0, systemUnderTest.GetEffect("Test"));
        }
Beispiel #2
0
        public void HasEffect_ReturnsTrue_IfCustomDataHasEffect()
        {
            MockCustomData.HasEffect("Test").Returns(true);

            BoostUnit systemUnderTest = CreateSystem();

            Assert.IsTrue(systemUnderTest.HasEffect("Test"));
        }
Beispiel #3
0
        public void HasEffect_ReturnsFalse_IfCustomDataDoesNotHaveEffect()
        {
            MockCustomData.HasEffect("Test").Returns(false);

            BoostUnit systemUnderTest = CreateSystem();

            Assert.IsFalse(systemUnderTest.HasEffect("Test"));
        }
Beispiel #4
0
        public void GetEffect_ReturnsItemCountMultipliedByDataEffect()
        {
            MockItemInstance.GetCount().Returns(3);
            MockCustomData.GetEffect("Test").Returns(5);
            MockCustomData.HasEffect("Test").Returns(true);

            BoostUnit systemUnderTest = CreateSystem();

            Assert.AreEqual(15, systemUnderTest.GetEffect("Test"));
        }
Beispiel #5
0
        private BoostUnit CreateSystem()
        {
            BoostUnit systemUnderTest = new BoostUnit(MockItemInstance, MockCustomData);

            return(systemUnderTest);
        }