Example #1
0
        public void GetContentStringAsyncNotContentTest()
        {
            // Arrange
            var responseMessage = new HttpResponseMessage(HttpStatusCode.OK);

            // Act
            var task = _classUnderTest.GetContentAsync(responseMessage);

            task.Wait();

            // Assert
            task.Result.Successful.Should().BeTrue();
            task.Result.Result.Should().BeNull();
        }