コード例 #1
0
        public async Task ErrorRate_DeleteOne_ReturnsValue_Test()
        {
            var expected = await Err.DeleteOne(1);

            await Db.Connection.CloseAsync();

            Assert.IsNotNull(expected);
        }
コード例 #2
0
        public async Task ErrorRate_DeleteOne_ReturnsNotFoundResultOnNullIndex_Test()
        {
            var actual = await Err.DeleteOne(999);

            await Db.Connection.CloseAsync();

            Assert.IsInstanceOf <NotFoundResult>(actual);
        }