コード例 #1
0
        public virtual void testIncrementFromNewInstanceIsOne()
        {
            NumberedPrefix prefix = new NumberedPrefix();

            prefix.increment();
            Assert.AreEqual("1", prefix.Prefix);
        }
コード例 #2
0
        public virtual void testIncrementForThreePointFourPointThreeIsThreePointFourPointFour()
        {
            NumberedPrefix prefix = new NumberedPrefix();

            prefix.Prefix = "3.4.3";
            prefix.increment();
            Assert.AreEqual("3.4.4", prefix.Prefix);
        }
コード例 #3
0
        public virtual void testIncrementForTwoPointTwoIsTwoPointThree()
        {
            NumberedPrefix prefix = new NumberedPrefix();

            prefix.Prefix = "2.2";
            prefix.increment();
            Assert.AreEqual("2.3", prefix.Prefix);
        }
コード例 #4
0
        public void testIncrementForThreePointFourPointThreeIsThreePointFourPointFour()
        {
            NumberedPrefix prefix = new NumberedPrefix();

            prefix.setPrefix("3.4.3");
            prefix.increment();
            Assert.AreEqual("3.4.4", prefix.getPrefix());
        }
コード例 #5
0
        public void testIncrementForTwoPointTwoIsTwoPointThree()
        {
            NumberedPrefix prefix = new NumberedPrefix();

            prefix.setPrefix("2.2");
            prefix.increment();
            Assert.AreEqual("2.3", prefix.getPrefix());
        }