public async Task Validate_ColorCodingComponents_GetMultipliers_Empty_Failure() { //arrange //act var colorCodingComponents = new ColorCodingComponents(); var response = await colorCodingComponents.GetMultipliersAsync(""); //assert Assert.IsNull(response); }
public async Task Validate_ColorCodingComponents_GetTolerance_Empty_Success() { //arrange //act var colorCodingComponents = new ColorCodingComponents(); var response = await colorCodingComponents.GetToleranceAsync(""); //assert Assert.IsNotNull(response); }
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); }
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); }
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); }