示例#1
0
        public async Task Validate_ColorCodingComponents_GetMultipliers_Empty_Failure()
        {
            //arrange


            //act
            var colorCodingComponents = new ColorCodingComponents();
            var response = await colorCodingComponents.GetMultipliersAsync("");

            //assert
            Assert.IsNull(response);
        }
示例#2
0
        public async Task Validate_ColorCodingComponents_GetTolerance_Empty_Success()
        {
            //arrange


            //act
            var colorCodingComponents = new ColorCodingComponents();
            var response = await colorCodingComponents.GetToleranceAsync("");

            //assert
            Assert.IsNotNull(response);
        }
示例#3
0
        public async Task Validate_ColorCodingComponents_GetMultipliers_White_Success()
        {
            //arrange


            //act
            var colorCodingComponents = new ColorCodingComponents();
            var response = await colorCodingComponents.GetMultipliersAsync("white");

            //assert
            Assert.IsNotNull(response);
            Assert.IsTrue(response == 1000000000d);
        }
示例#4
0
        public async Task Validate_ColorCodingComponents_GetColorBands_Red_Success()
        {
            //arrange


            //act
            var colorCodingComponents = new ColorCodingComponents();
            var response = await colorCodingComponents.GetColorBandValueAsync("red");

            //assert
            Assert.IsNotNull(response);
            Assert.IsTrue(response == 2);
        }
示例#5
0
        public async Task Validate_ColorCodingComponents_GetColorBands_Success()
        {
            //arrange


            //act
            var colorCodingComponents = new ColorCodingComponents();
            var response = await colorCodingComponents.GetColorBandsAsync();

            //assert
            Assert.IsNotNull(response);
            Assert.IsTrue(response.Any());
            Assert.IsTrue(response.Count() == 10);
        }