Example #1
0
        public void Should_GetStarshipResults_NextValue_Be_Empty()
        {
            Models.StarshipResultModel returnValue = APICall.GetStarshipResults();

            Assert.IsTrue(string.IsNullOrWhiteSpace(returnValue.next));
            Assert.Pass("OK for GetStarshipResults NextValue is empty test");
        }
Example #2
0
        public void Should_GetStarshipResults_Brings_Results()
        {
            Models.StarshipResultModel returnValue = APICall.GetStarshipResults();

            Assert.IsTrue(returnValue.results.Any());
            Assert.Pass("OK for GetStarshipResults Contain Results test");
        }
Example #3
0
        public void Should_GetStarshipResults_CountProperty_And_CountResults_Are_Equal()
        {
            Models.StarshipResultModel returnValue = APICall.GetStarshipResults();

            Assert.AreEqual(returnValue.results.Count, returnValue.count);
            Assert.Pass("OK for GetStarshipResults CountProperty and CountResults are equal test");
        }
Example #4
0
        public void Should_GetStarshipResults_Not_Brings_Null()
        {
            Models.StarshipResultModel returnValue = APICall.GetStarshipResults();

            Assert.IsNotNull(returnValue);
            Assert.Pass("OK for GetStarshipResults not be null test");
        }