コード例 #1
0
 public async void RequiresPlayerName()
 {
     var user = new GameUser()
     {
         Username = TestingHelpers.GetRandomUserEmail(),
         Password = "******"
     };
     await user.SignUpAsync();
 }
コード例 #2
0
 public async void UsernameAndEmailMustBeEqual()
 {
     var user = new GameUser()
     {
         Username = TestingHelpers.GetRandomUserEmail(),
         Email = TestingHelpers.GetRandomUserEmail(),
         Password = "******",
         PlayerName = "Test User"
     };
     await user.SignUpAsync();
 }
コード例 #3
0
        public async void SuccessfullyLogsAUserIn()
        {
            var email = TestingHelpers.GetRandomUserEmail();
            var user = new GameUser()
            {
                Username = email,
                Email = email,
                Password = "******",
                PlayerName = "Test User"
            };
            await user.SignUpAsync();

            Assert.IsNotNull(ParseUser.CurrentUser);
        }