Skip to content

Instantly share code, notes, and snippets.

@tabareh
Last active March 1, 2018 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tabareh/b6a18e25da9d5f700c2ac2233bfafd9b to your computer and use it in GitHub Desktop.
Save tabareh/b6a18e25da9d5f700c2ac2233bfafd9b to your computer and use it in GitHub Desktop.
[Http response assertion] #Discipline_Test
//
var emptyResult = await this.controller.Get("", 3000) as BadRequestErrorMessageResult;
var nullResult = await this.controller.Get(null, 300) as BadRequestErrorMessageResult;
// Assert
emptyResult.Should().NotBeNull();
nullResult.Should().NotBeNull();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment