コード例 #1
0
        public async Task Roll_NotMentionedTest()
        {
            ulong botCurrentUserId = TestLazySocketUser.MyBot.Id;

            var(allCommands, testObserver, _) = Init();

            await allCommands.ReceiveMessageAsync(TestLazySocketMessage.CreateNotMentionedMessage("1d100"), botCurrentUserId);

            AssertEx.IsEmpty(testObserver.Messages);
        }
コード例 #2
0
        async Task Plain_NotMentionedTestCore(string text)
        {
            ulong botCurrentUserId = TestLazySocketUser.MyBot.Id;

            var(allCommands, testObserver, _) = Init();

            await allCommands.ReceiveMessageAsync(TestLazySocketMessage.CreateNotMentionedMessage(text), botCurrentUserId);

            AssertEx.IsEmpty(testObserver.Messages);
        }