public void RemoveCustomHeader_RemoveNonExistantCustomHeader_ReturnsFalse() { SimpleHttpClient.SimpleClientConfig model = Mockup.GetMockupConfigWithCustomHeader(); var result = model.RemoveCustomHeader("ThisKeyDoesNotExist"); Assert.IsFalse(result); }
public void AddCustomHeader_AddAlreadyExistingCustomHeader_ReturnsFalse() { SimpleHttpClient.SimpleClientConfig model = Mockup.GetMockupConfigWithCustomHeader(); var result = model.AddCustomHeader(Mockup.MockCustomHeaderKey, "value"); Assert.IsFalse(result); }
public void RemoveCustomHeader_RemoveCustomHeader_ReturnsTrue() { SimpleHttpClient.SimpleClientConfig model = Mockup.GetMockupConfigWithCustomHeader(); var result = model.RemoveCustomHeader(Mockup.MockCustomHeaderKey); Assert.IsTrue(result); }
public void AddCustomHeader_AddCustomHeader_ReturnsTrue() { SimpleHttpClient.SimpleClientConfig model = Mockup.GetMockupConfig(); var result = model.AddCustomHeader("key", "value"); Assert.IsTrue(result); }