public void ConvertTimeStringAndFormats_IncorrectCase_TimeSpanNotCorrect()
        {
            TestDelegate testDelegate = () =>
            {
                // Arrange
                string timeSpan = "99:99:99f";
                IBerlinClockViewFormat berlinClockViewFormat = new BerlinClockCharViewFormat();

                // Act
                this._berlinClockTimeConverter.ConvertTime(timeSpan, berlinClockViewFormat);
            };

            // Assert
            Assert.Throws <ArgumentException>(testDelegate);
        }
Esempio n. 2
0
 public void SetUp()
 {
     this._berlinClockCharViewFormat = new BerlinClockCharViewFormat();
 }
Esempio n. 3
0
        /// <summary>
        /// Convert input time to Berlin Clock
        /// </summary>
        /// <param name="timeSpan">Time span</param>
        /// <returns>Converted time to <see cref="BerlinClockCharViewFormat"/> format</returns>
        public string ConvertTime(string timeSpan)
        {
            IBerlinClockViewFormat berlinClockViewFormat = new BerlinClockCharViewFormat();

            return(this.ConvertTime(timeSpan, berlinClockViewFormat));
        }