public void TestMethod1() { HelloController HC = new HelloController(); string tv = HC.GetHello(); Assert.AreEqual(tv, "Hello World"); }
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); }