Exemple #1
0
        public void DoesStartWorks()
        {
            var stopwatch      = new System.Diagnostics.Stopwatch();
            var implementation = new Infrastructure.Stopwatch.Stopwatch(stopwatch);

            implementation.Start();
            stopwatch.IsRunning.Should().BeTrue();
        }
Exemple #2
0
        public void DoesElapsedMillisecondsWorkCorrectly()
        {
            var stopwatch = new System.Diagnostics.Stopwatch();

            stopwatch.Start();
            stopwatch.Stop();
            var implementation = new Infrastructure.Stopwatch.Stopwatch(stopwatch);

            implementation.ElapsedMilliseconds.Should().Be(stopwatch.ElapsedMilliseconds);
        }