public async Task NotMocked_3() { IWithAsyncStuff wClass = new WithAsyncStuff(); int result = await wClass.MethodThree(string.Empty, 1, DateTime.Now); Assert.AreEqual(2, result); }
public void NotMocked_3_ThrowEx_2() { IWithAsyncStuff wClass = new WithAsyncStuff(); try { int result = wClass.MethodThree(string.Empty, 1, null).Result; } catch (Exception ex) { Assert.AreEqual(ex.GetBaseException().GetType(), typeof(ArgumentNullException)); } }
public void NotMocked_3_ThrowEx_1() { IWithAsyncStuff wClass = new WithAsyncStuff(); int result = wClass.MethodThree(string.Empty, 1, null).Result; }