コード例 #1
0
        public void CountMcNullTest()
        {
            //Setup
            string parkingPlace;

            parkingPlace = null;
            int expectedCount = 0;
            int actualCount;

            //Act
            actualCount = ParkingSlot.CountMc(parkingPlace);

            //Verify
            Assert.AreEqual(expectedCount, actualCount);
        }
コード例 #2
0
        public void CountMc2McTest()
        {
            //Setup
            string parkingPlace;

            parkingPlace = "poi987:abc124";
            int expectedCount = 2;
            int actualCount;

            //Act
            actualCount = ParkingSlot.CountMc(parkingPlace);

            //Verify
            Assert.AreEqual(expectedCount, actualCount);
        }