示例#1
0
        public void CalSpeedTest_NumberText()
        {
            //Arrange
            var cal = new Speed();

            //Act
            cal.CalSpeed("1000km", " 100h");
            //Assert
        }
示例#2
0
        public void CalSpeedTest_NumberSpace()
        {
            //Arrange
            var cal = new Speed();
            //Act
            var actual   = cal.CalSpeed("1000 ", "100 ");
            var expected = 10;

            //Assert
            Assert.AreEqual(expected, actual, "Value's + Space");
        }