예제 #1
0
        public void ReturnedInternalSeverError(short rep)
        {
            //Arrange
            var request = new RequestToTest(rep);
            var repeat  = new Repeat(request, 5);

            //Act
            var response = repeat.GetResponse();

            //Assert
            Assert.False(response is IStatusOkResponse);
            Assert.True(rep > repeat.Repeated);
        }
예제 #2
0
        public void ReturnedOk(short rep)
        {
            //Arrange
            var request = new RequestToTest(rep);
            var repeat  = new Repeat(request, 5);

            //Act
            var response = repeat.GetResponse();

            //Assert
            Assert.True(response is IStatusOkResponse);
            Assert.Equal(rep, repeat.Repeated);
        }