예제 #1
0
        public void PayloadRange_ToString()
        {
            //Arrange
            var range    = new PayloadRange(2500, 5000);
            var expected = "2,500kg - 5,000kg";

            //Act
            var actual = range.ToString();

            //Assert
            Assert.AreEqual(expected, actual);
        }
        public void PayloadRange_ToString()
        {
            //Arrange
            var range     = new PayloadRange(400, 1000);
            var oldString = $"Lightest: {400}@Heaviest: {1000}";

            var expected = oldString.Replace("@", "\n");

            //Act
            var actual = range.ToString();

            //Assert
            Assert.AreEqual(expected, actual);
        }