public void GetTimeResolution__removes_the_last_pixels_from_list() { var dive = new Dive(1, 1, 2, "image"); var pixel = (new[] { new Pixel(1, 1), new Pixel(2, 3), new Pixel(3, 5), new Pixel(4, 1), new Pixel(5, 1), new Pixel(6, 1), new Pixel(7, 1), new Pixel(8, 1) }).ToList(); var fac = new SampleFactory(); fac.GetTimeResolution(pixel, dive); pixel.Count().Should().Be(4); }
public void GetTimeResolution__gets_resolution_round_up() { var dive = new Dive(1, 1, 68, "image"); var pixel = (new[] { new Pixel(1, 1), new Pixel(2, 3), new Pixel(3, 5), new Pixel(4, 5), new Pixel(5, 3), new Pixel(6, 1) }).ToList(); var fac = new SampleFactory(); var resoluion = fac.GetTimeResolution(pixel, dive); resoluion.Should().Be(14); }