Index: Application/Ringtoets/test/Application.Ringtoets.Test/AppTest.cs =================================================================== diff -u -ra730057358d8e79466fa4ff3d348a0230ee00858 -r7c2804202c19885449ea697da4a8f4b0220d30b9 --- Application/Ringtoets/test/Application.Ringtoets.Test/AppTest.cs (.../AppTest.cs) (revision a730057358d8e79466fa4ff3d348a0230ee00858) +++ Application/Ringtoets/test/Application.Ringtoets.Test/AppTest.cs (.../AppTest.cs) (revision 7c2804202c19885449ea697da4a8f4b0220d30b9) @@ -22,6 +22,7 @@ using System; using System.DirectoryServices.AccountManagement; using System.Linq; +using System.Threading; using Core.Common.Gui.Settings; using Core.Common.TestUtil; using NUnit.Framework; @@ -75,8 +76,11 @@ }; // Assert - var userDisplayInfo = string.Format("{0} ({1})", UserPrincipal.Current.DisplayName, - UserPrincipal.Current.SamAccountName); + var userDisplayInfo = !Thread.CurrentPrincipal.Identity.IsAuthenticated + ? Environment.UserName + : string.Format("{0} ({1})", UserPrincipal.Current.DisplayName, + UserPrincipal.Current.SamAccountName); + TestHelper.AssertLogMessages(call, messages => { var msgs = messages.ToArray();