Beispiel #1
0
        static void Main(string[] args)
        {
            string targetData = ConfigurationManager.AppSettings["TargetData"];

            string result = new helloworldController().Get();

            HelperClass.ProcessData(result);
        }
        public void Get()
        {
            // Arrange
            helloworldController controller = new helloworldController();

            // Act
            string result = controller.Get();

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(10, result.Length);
            Assert.AreEqual("Hello Word", result);
        }