Akka.Interfaced.LogFilter.Tests.LogFilterTest.Test_Exception C# (CSharp) Method

Test_Exception() private method

private Test_Exception ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task Test_Exception()
        {
            ClearLogger();

            await Assert.ThrowsAsync<ArgumentNullException>(async () =>
            {
                var actor = ActorOfAsTestActorRef<TestActor>(Props.Create<TestActor>());
                var a = actor.Cast<TestRef>();
                await a.Call(null);
            });

            var logs = GetLogs();
            Assert.Equal(2, logs.Count);
            Assert.Equal("<- (#-1) Call {}", logs[0]);
            Assert.True(logs[1].StartsWith("-> (#-1) Call Exception: System.ArgumentNullException:"));
        }