public void Should_return_some_if_some_are_valid() { //Arrange var points = new[] { new Point { Measurement = "x", Fields = new Dictionary <string, object> { { "A", "1" } }, Tags = new Dictionary <string, object> { { "B", "2" } } }, new Point { }, }; var validator = new PointValidator(); //Act var response = validator.Clean(points); //Assert Assert.That(response, Is.Not.Empty); Assert.That(response.Count(), Is.EqualTo(1)); }
public void Should_return_none_if_none_are_valud() { //Arrange var points = new[] { new Point { }, new Point { }, }; var validator = new PointValidator(); //Act var response = validator.Clean(points); //Assert Assert.That(response, Is.Empty); }