public void Should_ValidateInvalidMessages(string json, bool expected) { var reciever = new Reciever(); var result = reciever.IsValid(JToken.Parse(json)); result.Should().Be(expected); }