public void SetUp() => Schedule(() =>
 {
     Child = container = new PreviousUsernames
     {
         Anchor = Anchor.Centre,
         Origin = Anchor.Centre,
     };
 });
Пример #2
0
        public TestSceneUserProfilePreviousUsernames()
        {
            Child = new PreviousUsernames
            {
                Anchor = Anchor.Centre,
                Origin = Anchor.Centre,
                User   = { BindTarget = user },
            };

            User[] users =
            {
                new User {
                    PreviousUsernames = new[]{ "username1"                      }
                },
                new User {
                    PreviousUsernames = new[]{ "longusername", "longerusername" }
                },
                new User {
                    PreviousUsernames = new[]{ "test", "angelsim", "verylongusername" }
                },
                new User {
                    PreviousUsernames = new[]{ "ihavenoidea", "howcani", "makethistext", "anylonger" }
                },
                new User {
                    PreviousUsernames = new string[0]
                },
                null
            };

            AddStep("single username", () => user.Value = users[0]);
            AddStep("two usernames", () => user.Value   = users[1]);
            AddStep("three usernames", () => user.Value = users[2]);
            AddStep("four usernames", () => user.Value  = users[3]);
            AddStep("no username", () => user.Value     = users[4]);
            AddStep("null user", () => user.Value       = users[5]);
        }