public void AuthServiceMsgs_SerializeAuthenticationResult() { AuthenticationResult result; result = new AuthenticationResult(AuthenticationStatus.BadAccount, "Hello World!", TimeSpan.FromMinutes(55)); result = AuthenticationResult.Parse(result.ToString()); Assert.AreEqual(AuthenticationStatus.BadAccount, result.Status); Assert.AreEqual("Hello World!", result.Message); Assert.AreEqual(TimeSpan.FromMinutes(55), result.MaxCacheTime); }