public void TestInvalidateToken() { var target = "This is here to instantiate the string"; for (var i = 0; i < 1000; i++) { var newValue = _fakeAccountGen.Generate(); var newKey = SessionService.NewSession(newValue); if (i != 500) { continue; } target = newKey; } Assert.True(SessionService.CheckToken(target)); SessionService.InvalidateToken(target); Assert.False(SessionService.CheckToken(target)); }