public void IndexTest()
        {
            OhmValueCalculator      ohmValueCalculator = new OhmValueCalculator();
            OhmCalculatorController controller         = new OhmCalculatorController(ohmValueCalculator);
            var result = controller.Index();

            Assert.IsInstanceOfType(result, typeof(ViewResult));
        }
Example #2
0
        public void IndexTest()
        {
            OhmCalculatorController target   = new OhmCalculatorController(); // TODO: Initialize to an appropriate value
            ActionResult            expected = null;                          // TODO: Initialize to an appropriate value
            ActionResult            actual;

            actual = target.Index();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
        public void CalculateOhmValueTest()
        {
            OhmValueCalculator      ohmValueCalculator = new OhmValueCalculator();
            OhmCalculatorController controller         = new OhmCalculatorController(ohmValueCalculator);
            var bandAColor = Enum.GetName(typeof(ColorType), ColorType.Brown);
            var bandBColor = Enum.GetName(typeof(ColorType), ColorType.Brown);
            var bandCColor = Enum.GetName(typeof(ColorType), ColorType.Brown);
            var bandDColor = Enum.GetName(typeof(ColorType), ColorType.Brown);
            var result     = controller.CalculateOhmValue(bandAColor, bandBColor, bandCColor, bandDColor);

            Assert.IsInstanceOfType(result, typeof(JsonResult));
        }
Example #4
0
        public void SubmitNewTest()
        {
            OhmCalculatorController target = new OhmCalculatorController(); // TODO: Initialize to an appropriate value
            string       bandA             = string.Empty;                  // TODO: Initialize to an appropriate value
            string       bandB             = string.Empty;                  // TODO: Initialize to an appropriate value
            string       bandC             = string.Empty;                  // TODO: Initialize to an appropriate value
            string       bandD             = string.Empty;                  // TODO: Initialize to an appropriate value
            ActionResult expected          = null;                          // TODO: Initialize to an appropriate value
            ActionResult actual;

            actual = target.SubmitNew(bandA, bandB, bandC, bandD);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Example #5
0
        public void OhmCalculatorControllerConstructorTest()
        {
            OhmCalculatorController target = new OhmCalculatorController();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
Example #6
0
 public OhmCalculateControllerTest()
 {
     ohmCalculateController = new OhmCalculatorController(A.Fake <IOhmCalculator>());
 }