public void ToString_WithoutRoles_Test() { var target = new UserInfo{UserId = 1,Username = "******", FullName = "Test User", Email = "*****@*****.**",ApiKey = "0f8fad5b-d9cb-469f-a165-70867728950e"}; var expected = "1|TestUser|[email protected]|Test User|0f8fad5b-d9cb-469f-a165-70867728950e|"; var actual = target.ToString(); Assert.AreEqual(expected,actual); }