public ActionResult Index(InputData model, string modificationOption, string inputArea)
        {
            if (modificationOption == "green")
            {
                model.Input = "<p id='text' style='color:green'>" + inputArea + "</p>";
            }
            else if (modificationOption == "reverse")
            {
                model.Input = "<p id='text'>" + InputData.Reverse(inputArea) + "</p>";
            }
            else if (modificationOption == "bold")
            {
                model.Input = "<b id='text'>" + inputArea + "</b>";
            }
            else if (modificationOption == "italic")
            {
                model.Input = "<i id='text'>" + inputArea + "</i>";
            }
            else if (modificationOption == "D2B")
            {
                model.Input = "<p id='text'>" + InputData.D2B(inputArea) + "</p>";
            }
            else if (modificationOption == "B2D")
            {
                model.Input = "<p id='text'>" + InputData.B2D(inputArea) + "</p>";
            }

            return(View(model));
        }
 public void DecToBinary_0_0()
 {
     Assert.Equal("0", InputData.D2B(0));
 }
 public void DecToBinary_87_1010111()
 {
     Assert.Equal("1010111", InputData.D2B(87));
 }
 public void DecToBinary_54_110110()
 {
     Assert.Equal("110110", InputData.D2B(54));
 }
 public void DecToBinary_21_10101()
 {
     Assert.Equal("10101", InputData.D2B(21));
 }
 public void DecToBinary_4_100()
 {
     Assert.Equal("100", InputData.D2B(4));
 }