コード例 #1
0
        public void Test_accept_string_icorrect_format2_returned_int_minus1()
        {
            //Arange
            TrackOptions element = new TrackOptions(1, "Шатунов", "Белые розы", "0350", "http://", "001.mp3");
            int          result  = element.TimeStringToInt(element.Duration);

            //Act
            int actual = -1;

            //Assert
            Assert.AreEqual(actual, result);
        }
コード例 #2
0
        public void Test_accept_string_0000_returned_int_0()
        {
            //Arange
            TrackOptions element = new TrackOptions(1, "Шатунов", "Белые розы", "00:00", "http://", "001.mp3");
            int          result  = element.TimeStringToInt(element.Duration);

            //Act
            int actual = 0;

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