Пример #1
0
        public void WhenRemovingUsesFromInstance_CountDoesNotGoBelowZero()
        {
            MyItemInstance systemUnderTest = new MyItemInstance();

            systemUnderTest.Count = 10;
            systemUnderTest.RemoveUses(30);

            Assert.AreEqual(0, systemUnderTest.Count);
        }
Пример #2
0
        public void WhenRemovingUsesFromInstance_CountIsChanged()
        {
            MyItemInstance systemUnderTest = new MyItemInstance();

            systemUnderTest.Count = 10;
            systemUnderTest.RemoveUses(3);

            Assert.AreEqual(7, systemUnderTest.Count);
        }