public void SampleTests_SayHelloNoInput() { SampleBL sampleBL = new SampleBL(); var response = sampleBL.SayHello(""); Assert.IsNull(response); }
public void SampleTests_SayHelloSuccess() { SampleBL sampleBL = new SampleBL(); var response = sampleBL.SayHello("satya"); Assert.IsNotNull(response); Assert.IsTrue(response == "Hello.. satya"); }
public void SampleTests_SayHelloException() { SampleBL sampleBL = new SampleBL(); try { var response = sampleBL.SayHello(null); Assert.IsNotNull(response); } catch (Exception ex) { Assert.IsNotNull(ex); } }