Exemple #1
0
        public void Constructor_Returns_New_round_When_Valid_Parameters()
        {
            var round = new Lap("12:01:12", "1", "test", "1", "1:11.111", "1");

            round.Should().NotBeNull();
            round.Hour.Should().Be(Convert.ToDateTime("12:01:12"));
            round.Racer.RacerId.Should().Be(1);
            round.Racer.Name.Should().Be("test");
            round.LapCount.Should().Be(1);
            round.LapTime.Should().Be(TimeSpan.ParseExact("1:11.111", "m\\:ss\\.fff", null));
            round.AverageSpeed.Should().Be(1);
        }