Ejemplo n.º 1
0
 public static Subtitle CreateSubtitle2()
 {
     return(new Subtitle(
                SubtitleIdTests.CreateId2(),
                new SubtitleTimestamps(
                    TimestampTests.CreateTimestamp(10, 0, 0, 0),
                    TimestampTests.CreateTimestamp(10, 0, 5, 0)),
                CreateSingleLineText("Subtitle2")));
 }
Ejemplo n.º 2
0
 public static Subtitle CreateSubtitle1()
 {
     return(new Subtitle(
                SubtitleIdTests.CreateId1(),
                new SubtitleTimestamps(
                    TimestampTests.CreateTimestamp(5, 4, 3, 2),
                    TimestampTests.CreateTimestamp(5, 4, 3, 3)),
                CreateSingleLineText("Subtitle1")));
 }
Ejemplo n.º 3
0
        public void Equals_NotEqualTimestamps_ReturnsFalse()
        {
            var t1 = new SubtitleTimestamps(
                TimestampTests.CreateTimestamp(1, 2, 3, 200),
                TimestampTests.CreateTimestamp(5, 2, 3, 200));

            var t2 = new SubtitleTimestamps(
                TimestampTests.CreateTimestamp(2, 2, 3, 2),
                TimestampTests.CreateTimestamp(3, 2, 3, 150));

            Assert.IsFalse(t1.Equals(t2));
        }
Ejemplo n.º 4
0
        public void Equals_EqualTimestamps_ReturnsTrue()
        {
            var t1 = new SubtitleTimestamps(
                TimestampTests.CreateTimestamp(1, 2, 3, 200),
                TimestampTests.CreateTimestamp(5, 2, 3, 200));

            var t2 = new SubtitleTimestamps(
                TimestampTests.CreateTimestamp(1, 2, 3, 200),
                TimestampTests.CreateTimestamp(5, 2, 3, 200));

            Assert.IsTrue(t1.Equals(t2));
        }
Ejemplo n.º 5
0
 public static SubtitleTimestamps CreateTimestamps()
 {
     return(new SubtitleTimestamps(
                TimestampTests.CreateTimestamp(1, 2, 3, 200),
                TimestampTests.CreateTimestamp(5, 2, 3, 200)));
 }