public void AssertTrueForValidLocationHeader() { //--Arrange IHttpActionResult actionResult = new TestActionResult(); //--Act/Assert actionResult.BetterBeNull(HttpStatusCode.Created, "https://link"); }
public void AssertFalseForInvalidLocationHeader() { //--Arrange IHttpActionResult actionResult = new TestActionResult(); //--Act/Assert Should.Throw <ShouldAssertException>(() => actionResult.BetterBeNull(HttpStatusCode.Created, "https://notlink")); }