public void TestOutOfRangeExceptionCase() { WCFFizzBuzzService ws = new WCFFizzBuzzService(); try { ws.GetData(101); } catch (Exception e) { StringAssert.Contains(e.Message, "Input value greater than limit."); return; } Assert.Fail("No exception was thrown"); }
public void TestCorrectValueCase() { WCFFizzBuzzService ws = new WCFFizzBuzzService(); Assert.IsInstanceOfType(ws.GetData(0), typeof(List <string>)); }