public void CorrectRequestForDelete() { var factory = Substitute.For<IConnection>(); var client = new TagsClient(factory); client.Delete("notarealtag"); var parameters = Arg.Is<List<Parameter>>(list => (string)list[0].Value == "notarealtag"); factory.Received().ExecuteRaw("tags/{name}", parameters, null, Method.DELETE); }