コード例 #1
0
        public static TeamInfo ShouldBeEquivalentTo(this TeamInfo teamInfo, TeamInfo expectedTeamInfo)
        {
            if (expectedTeamInfo == null)
            {
                teamInfo.ShouldBeNull();
            }
            else
            {
                teamInfo.ShouldNotBeNull();
                teamInfo.uuid.ShouldBe(expectedTeamInfo.uuid);
                teamInfo.username.ShouldBe(expectedTeamInfo.username);
                teamInfo.display_name.ShouldBe(expectedTeamInfo.display_name);
                teamInfo.links.ShouldBeEquivalentTo(expectedTeamInfo.links);
            }

            return(teamInfo);
        }