Пример #1
0
        public async Task NotMocked_3()
        {
            IWithAsyncStuff wClass = new WithAsyncStuff();
            int             result = await wClass.MethodThree(string.Empty, 1, DateTime.Now);

            Assert.AreEqual(2, result);
        }
Пример #2
0
        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));
            }
        }
Пример #3
0
 public void NotMocked_3_ThrowEx_1()
 {
     IWithAsyncStuff wClass = new WithAsyncStuff();
     int             result = wClass.MethodThree(string.Empty, 1, null).Result;
 }