예제 #1
0
        public void TestMethod1()
        {
            HelloController HC = new HelloController();
            string          tv = HC.GetHello();

            Assert.AreEqual(tv, "Hello World");
        }
예제 #2
0
        static void Main(string[] args)
        {
            HelloController HC  = new HelloController();
            string          rez = HC.GetHello();

            Console.Write(rez);
            Console.Read();
        }
        public void HelloControllerGetActionReturnsSuccess()
        {
            // arrange

            // act
            var response = _classUnderTest.GetHello() as OkObjectResult;

            // assert
            response.StatusCode.Should().Be(200);
        }