public void Index() { // Arrange EscitalaController controller = new EscitalaController(); // Act string result = controller.Index(); // Assert Assert.IsNotNull(result); Assert.AreEqual("Everything is working fine", result); }
public void Descifrar() { // Arrange EscitalaController controller = new EscitalaController(); MessageRequest request = new MessageRequest { Message = "DfesTef oRv p osuA ", Length = 5 }; // Act var response = controller.Descifrar(JsonConvert.SerializeObject(request)); // Assert Assert.IsNotNull(response); Assert.AreEqual("Devoff se puso ATR ", response); }